Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Nov 5, 2025

We should make sure that defaults are also specified in the split .pre-commit-config.yaml files for different languages. Just to avoid any future problems we synchronize defaults for all languages no matter which languages are used currently - because it is possible that we will use different languages in different distributions for pre-commits.


^ 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 airflow-core/newsfragments.

We should make sure that defaults are also specified in the split
.pre-commit-config.yaml files for different languages. Just to
avoid any future problems we synchronize defaults for all languages
no matter which languages are used currently - because it is
possible that we will use different languages in different
distributions for pre-commits.
@potiuk potiuk force-pushed the fix-default-language-versions branch from ed194a2 to 691438f Compare November 5, 2025 09:24
@uranusjr
Copy link
Member

uranusjr commented Nov 5, 2025

Do we have a pre-commit check to check those pre-commit configs are in sync with each other?

@amoghrajesh
Copy link
Contributor

@uranusjr you mean this?
image

@potiuk
Copy link
Member Author

potiuk commented Nov 5, 2025

Do we have a pre-commit check to check those pre-commit configs are in sync with each other?

I think not - but that would be somewhat valuable addition if you would like to add one (however we change those very rarely).

@potiuk potiuk merged commit e67b211 into apache:main Nov 5, 2025
84 checks passed
@potiuk potiuk deleted the fix-default-language-versions branch November 5, 2025 10:35
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker e67b211 v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

@potiuk
Copy link
Member Author

potiuk commented Nov 5, 2025

So feel absolutely free @uranusjr

image

@potiuk
Copy link
Member Author

potiuk commented Nov 5, 2025

No need to backport BTW.

default_language_version:
python: python3
node: 22.19.0
golang: 1.24.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, also if there is no golang in this package :-D

Copy link
Member Author

@potiuk potiuk Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I wrote it in the description that I am adding all defaults everywhere - it is very easy to add or move a peek hook and forget toove defaults.

Defaults are just defaults :)

Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
…ache#57851)

We should make sure that defaults are also specified in the split
.pre-commit-config.yaml files for different languages. Just to
avoid any future problems we synchronize defaults for all languages
no matter which languages are used currently - because it is
possible that we will use different languages in different
distributions for pre-commits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants