Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Nov 26, 2023

Pre-commits often import some modules from elsewhere after inserting a common folder at PYTHONPATH. Pre-commits are pretty special, because they are supposed to be run as standalone scripts by pre-commit framework as git hooks, and they often do similar things, so some common code in pre-commits is good to have.

Ignoring E402 error in all pre-commits seems like best way to avoid unnecessary individual exclusions.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Pre-commits often import some modules from elsewhere after inserting
a common folder at PYTHONPATH. Pre-commits are pretty special,
because they are supposed to be run as standalone scripts
by pre-commit framework as git hooks, and they often do
similar things, so some common code in pre-commits is good to have.

Ignoring E402 error in all pre-commits seems like best way to
avoid unnecessary individual exclusions.
@potiuk potiuk force-pushed the ignore-import-top-level-error-in-pre-commits branch from 2b90ac1 to e14f426 Compare November 26, 2023 22:45
@potiuk
Copy link
Member Author

potiuk commented Nov 27, 2023

random errors. Need to stlll look at docker stability - but that's unrelated.

@potiuk potiuk merged commit d045a0f into apache:main Nov 27, 2023
@potiuk potiuk deleted the ignore-import-top-level-error-in-pre-commits branch November 27, 2023 00:19
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants