You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hear some complaints about the necessity of commits to make flake8 or the other code checkers happy.
What I expect to happen:
Most of the issues could be fixed by a machine, so it should do it.
What actually happened:
I have to run tox before the commit to see the problems which will arise in CI.
Suggestions
Configure pre-commit to run the code checkers.
This allows developers with installed and activated pre-commit to automatically see the problems when committing and get them fixed if they are automatically fixable.
Configure repository to use https://pre-commit.ci to automatically run the pre-commit tests as CI system.
It updates the PR if it finds fixable issues raised by the code checkers.
FEATURE EXPERIMENT
What I did:
I hear some complaints about the necessity of commits to make flake8 or the other code checkers happy.
What I expect to happen:
Most of the issues could be fixed by a machine, so it should do it.
What actually happened:
I have to run
tox
before the commit to see the problems which will arise in CI.Suggestions
pre-commit
to run the code checkers.pre-commit
to automatically see the problems when committing and get them fixed if they are automatically fixable.unittest
assert calls.Notes
tox -elint
to runpre-commit
on all files to use the same configuration and to allow to keep existing habits.pre-commit
.lint
environment.Zope
repository should be part of it.The text was updated successfully, but these errors were encountered: