Skip to content
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

Rename pre-commit scripts, drop pre_commit_ prefix #38667

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Apr 2, 2024

We don't reference those scripts only by name anywhere (always by the full path or the pre-commit ID). The pre-commit part is already evident from them being inside a pre_commit directory. This makes paths shorter and those files a bit easier to browse in a file browser (including ls).

We don't reference those scripts only by name anywhere (always by the
full path or the pre-commit ID). The pre-commit part is already evident
from them being inside a pre_commit directory. This makes paths shorter
and those files a bit easier to browse in a file browser (including ls).
@uranusjr uranusjr force-pushed the drop-pre-commit-prefix branch from c7718c2 to 4bc1d63 Compare April 2, 2024 02:54
@potiuk
Copy link
Member

potiuk commented Apr 2, 2024

Sure. If it makes someone's life easier :). The original reason why it had the prefix was that it's been quite evident from script opened in IDE, that it's a pre-commit script without looking at the path, but this is a very subtle nuance so if making scripts names shorter makes it better. Those scripts are anyhow rarely modfied.

@potiuk potiuk merged commit 725a9b6 into apache:main Apr 2, 2024
67 checks passed
@uranusjr uranusjr deleted the drop-pre-commit-prefix branch April 2, 2024 07:43
potiuk pushed a commit that referenced this pull request Apr 6, 2024
We don't reference those scripts only by name anywhere (always by the
full path or the pre-commit ID). The pre-commit part is already evident
from them being inside a pre_commit directory. This makes paths shorter
and those files a bit easier to browse in a file browser (including ls).

(cherry picked from commit 725a9b6)
@potiuk potiuk added this to the Airflow 2.9.0 milestone Apr 6, 2024
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 6, 2024
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..) kind:documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants