-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Inconsistent lint environments #36426
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
Comments
I would recommend running the linting commands on CI through pre-commit. That way the versions in We could do this by updating our existing code-checks.sh, or by moving these checks to a GitHub action that uses the pre-commit action, like in dask/dask#6645. |
A couple of possible issues with that approach is that CI will never catch differences between the AFAIK there's no way to get pre-commit to respect tool versions specified in other files/ existing in the outer environment (and there shouldn't be given pre-commit's design goals). The MVP fix for this is just to change the version strings in the pre-commit config as it's only 3 lines. Somewhat related: is there any documentation for the separation of concerns between the different CI jobs and backends? |
Looks like the mismatch in CI and pre-commit versions is intentional for flake8: #36412 (comment) . But it's breaking things for isort so I'll fix that. |
Indeed, the bump for flake8 (and thus inconsistent with environment.yaml) was deliberate, because pre-commit was a bit unusable lately because of that. |
this is fixed now, as pre-commit is used to run CI now |
As of
pandas/.pre-commit-config.yaml
Line 8 in 3a15e47
As of
pandas/environment.yml
Line 23 in 11d5fc9
This makes it impossible to create a commit which passes pre-commit and CI.
The text was updated successfully, but these errors were encountered: