Now able to run as a standalone module or shell program, with limited functionality #146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
added these to OP in Switch backend to libCST #124