python-trio / flake8-async

Highly opinionated linter for Trio code
https://flake8-async.readthedocs.io
MIT License
19 stars 2 forks source link

Generate tests #19

Closed jakkdl closed 2 years ago

jakkdl commented 2 years ago

Hell yeah I'm happy this was done. Though the generating functions are kind of cobbled together for now - but I'll likely iterate more on them as development continues.

Hardcoding the line being referred to in a message is bad though, will likely fix some kind of special marker - e.g. # error: 8, $-2, try/finally to refer to current line - 2

Zac-HD commented 2 years ago

Please rebase/merge master for smaller diff 🙏

jakkdl commented 2 years ago

done! Now merely .. +309/-433 :joy: It's mostly just the new functions in flake8_trio_tests that's of particular interest though