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
make lint-fix doesn't fix linting issue #1036
Comments
|
Ok, I just reproduced this issue even with running pre-commit, I don't see the issue yet but see that it is an inconsistent result in running black. |
And then
This happens because there is a different version of black in the Will fix this by making the version of black consistent between pre-commit and poetry. |
We have both make format and pre-commit, but the pre-commit checks perform a larger scope of checks and used different versions of some of the tools (such as black) in the .pre-commit-config.yaml file vs poetry.lock file leading to inconsistent lint and formatting checks. whylogs will deprecate the `make format` target in favor of `make pre-commit`, and align the versions of the hooks used with those installed in developer environments via poetry. ## Changes - Deprecate make format and make format fix with warning and call make pre-commit for both of these. - Add pre-commit as a precondition of make release (replacing make format and lint). - Remove redundant format and lint step in the ci since these are run again as part of make release - update version of black in .pre-commit-config.yaml to match what we run in poetry environment. - formatting fixes so the repo complies with updated black and ci. ## Related fixes #1036
Description
make lint-fix
is a no op locallymake format-fix
doesn'tchange anythingHowever the CI is faiilng
The text was updated successfully, but these errors were encountered: