This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 19c32b9e0df Fix deprecated stage names for Pre-commit (#42872)
19c32b9e0df is described below

commit 19c32b9e0dffd193414ac0a9ad41a16b6020ce5b
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Oct 9 21:31:26 2024 +0100

    Fix deprecated stage names for Pre-commit (#42872)
    
    Before
    ```
    ❯ pre-commit install
    [WARNING] top-level `default_stages` uses deprecated stage names (commit, 
push) which will be removed in a future version.  run: `pre-commit 
migrate-config` to automatically fix this.
    pre-commit installed at .git/hooks/pre-commit
    ```
---
 .pre-commit-config.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 748a85e860b..394e11ac205 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 ---
-default_stages: [commit, push]
+default_stages: [pre-commit, pre-push]
 default_language_version:
   python: python3
   node: 22.2.0

Reply via email to