Skip to content

Remove pre-commit from devel extra of Airflow - #44059

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:remove-pre-commit-from-devel-deps
Nov 15, 2024
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:remove-pre-commit-from-devel-deps

Conversation

@potiuk

@potiuk potiuk commented Nov 15, 2024

Copy link
Copy Markdown
Member

Having pre-commit as devel dependency is not a good idea because it might conflict with the one installed globall when you install a local venv. Instead of installing it as a dependency, we install it separately in CI and CI image - together with UV and pre-comit-uv to make it fast and keep consistency and keep it in the same version in the development environment.

We still have TODO to keep it synchronized and updated automatically in all places and in github action - that will be done in a separate PR.


^ 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.

@boring-cyborg boring-cyborg Bot added area:dev-tools area:production-image Production image improvements and fixes labels Nov 15, 2024
@potiuk
potiuk force-pushed the remove-pre-commit-from-devel-deps branch from 4c9010f to 487d34d Compare November 15, 2024 14:32
@potiuk
potiuk force-pushed the remove-pre-commit-from-devel-deps branch 2 times, most recently from d4c57d7 to 61ec77f Compare November 15, 2024 15:16
@potiuk

potiuk commented Nov 15, 2024

Copy link
Copy Markdown
Member Author

created an issue for the TODO: #44062

@potiuk
potiuk force-pushed the remove-pre-commit-from-devel-deps branch from 61ec77f to 024af52 Compare November 15, 2024 15:43
Having pre-commit as devel dependency is not a good idea because
it might conflict with the one installed globall when you install
a local venv. Instead of installing it as a dependency, we install
it separately in CI and CI image - together with UV and pre-comit-uv
to make it fast and keep consistency and keep it in the same version
in the development environment.

We still have TODO to keep it synchronized and updated automatically
in all places and in github action - that will be done in a separate
PR.
@potiuk
potiuk force-pushed the remove-pre-commit-from-devel-deps branch from 024af52 to 56d111f Compare November 15, 2024 16:27
@potiuk

potiuk commented Nov 15, 2024

Copy link
Copy Markdown
Member Author

Merging. Those are intermittent issues only

@potiuk
potiuk merged commit da9c401 into apache:main Nov 15, 2024
@potiuk
potiuk deleted the remove-pre-commit-from-devel-deps branch November 15, 2024 17:47
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v2-10-test. View the failure log Run details

Status Branch Result
❌ v2-10-test Commit Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:production-image Production image improvements and fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants