-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup pre-commit black'ing and linting similarly to dandi-cli #35
Comments
@yarikoptic It is set up; the configuration is copied directly from dandi-cli. In what way is it not working appropriately? |
d'oh -- my bad, indeed it is there and I see the pre-commit hooks in .git/hooks.
for #34 I managed to do locally commit and then push to only get linters unhappy with fixes to follow in f129f15 (unused imports, comments format), and a271084 (too long lines). May be there is a quick way to just run |
just an fyi. this is the pre-commit file i'm using in nobrainer and this will take care of a lot of the issues. https://github.com/neuronets/nobrainer/blob/master/.pre-commit-config.yaml |
@yarikoptic Black just does formatting; it doesn't care about unused imports. It also, for some reason, doesn't edit comments beginning with multiple One wouldn't run tox itself through pre-commit; one would instead directly run the lint commands that tox runs. |
ok, could we run the |
Add flake8 to .pre-commit-config.taml
No description provided.
The text was updated successfully, but these errors were encountered: