File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -592,8 +592,14 @@ exclude = [
592592
593593` ` ` bash
594594pip install pre-commit
595+
596+ # pre-commit install by default installs pre-commit hook only:
595597pre-commit install
596598
599+ # add --hook-type to add other git hook types:
600+ pre-commit install --hook-type pre-push
601+
602+
597603# # install the script along with the hook environments in one command
598604
599605# # https://pre-commit.com/index.html#pre-commit-install-hooks
@@ -696,16 +702,16 @@ repos:
696702 - id: python-use-type-annotations
697703 - repo: local
698704 hooks:
699- - id: ruff-check
700- name: ruff-check
701- entry: ruff check --force-exclude
705+ - id: ruff-format
706+ name: ruff-format
707+ entry: ruff format --force-exclude
702708 language: system
703709 types_or: [python, pyi, jupyter]
704710 args: []
705711 require_serial: true
706- - id: ruff-format
707- name: ruff-format
708- entry: ruff format --force-exclude
712+ - id: ruff-check
713+ name: ruff-check
714+ entry: ruff check --force-exclude
709715 language: system
710716 types_or: [python, pyi, jupyter]
711717 args: []
You can’t perform that action at this time.
0 commit comments