First steps towards having it run as a standalone program, which is required for autofixing.
takes basic structure from shed, copying _get_git_repo_root.
Add some magic to get argparsing to work both as standalone and as a plugin
add flake8_trio/__main__ to run as a module, and a console_scripts entry point
moved out config testing from test_flake8_trio, and added a couple tests to test the above
crossing my fingers that git tests will magically work in the CI environment as well
Also:
Remove flake8-bandit - running git directly is .. kinda sus https://flake8.codes/S607/ ; but if shed does it I'm not gonna bother, and I'm very much just disabling ~all errors bandit throws, so it's not really contributing anything.
reportUnusedCallResult is frustrating, byebye~
Remaining steps:
Color support - I was most of the way to replicating flake8's color printing, but once it got into testing/coverage and windows support I abandoned it and threw it out. For a later PR, if ever.
Disable visitors with other ways than --enable-visitor-codes-regex
First steps towards having it run as a standalone program, which is required for autofixing.
_get_git_repo_root
.flake8_trio/__main__
to run as a module, and aconsole_scripts
entry pointtest_flake8_trio
, and added a couple tests to test the aboveAlso:
flake8-bandit
- runninggit
directly is .. kinda sus https://flake8.codes/S607/ ; but ifshed
does it I'm not gonna bother, and I'm very much just disabling ~all errors bandit throws, so it's not really contributing anything.reportUnusedCallResult
is frustrating, byebye~Remaining steps:
--enable-visitor-codes-regex