88 rev : v4.5.0
99 hooks :
1010 - id : trailing-whitespace
11- args : [--markdown-linebreak-ext=md]
11+ args : [ --markdown-linebreak-ext=md ]
1212 - id : end-of-file-fixer
1313 - id : check-yaml
14- args : [--allow-multiple-documents]
14+ args : [ --allow-multiple-documents ]
1515 - id : check-toml
1616 - id : check-json
1717 - id : check-added-large-files
18- args : ["--maxkb=1000"]
18+ args : [ "--maxkb=1000" ]
1919 - id : check-case-conflict
2020 - id : check-merge-conflict
2121 - id : check-docstring-first
2222 - id : debug-statements
2323 - id : detect-private-key
2424 - id : mixed-line-ending
25- args : [--fix=lf]
25+ args : [ --fix=lf ]
2626 - id : name-tests-test
27- args : [--pytest-test-first]
27+ args : [ --pytest-test-first ]
2828
2929 # Python code formatting
3030 - repo : https://github.com/psf/black
3131 rev : 24.1.0
3232 hooks :
3333 - id : black
3434 language_version : python3
35- args : [--line-length=120]
35+ args : [ --line-length=120 ]
3636
3737 # Import sorting
3838 - repo : https://github.com/PyCQA/isort
3939 rev : 5.13.2
4040 hooks :
4141 - id : isort
42- args : [--profile=black, --line-length=120]
42+ args : [ --profile=black, --line-length=120 ]
4343
4444 # Linting
4545 - repo : https://github.com/PyCQA/flake8
@@ -62,16 +62,16 @@ repos:
6262 rev : v1.8.0
6363 hooks :
6464 - id : mypy
65- args : [--ignore-missing-imports, --no-implicit-optional]
66- additional_dependencies : [types-requests]
65+ args : [ --ignore-missing-imports, --no-implicit-optional ]
66+ additional_dependencies : [ types-requests ]
6767 exclude : ^tests/
6868
6969 # Security checks
7070 - repo : https://github.com/PyCQA/bandit
7171 rev : 1.7.6
7272 hooks :
7373 - id : bandit
74- args : [-ll, --skip=B608]
74+ args : [ -ll, --skip=B608 ]
7575 exclude : ^tests/
7676
7777 # Docstring formatting (disabled for more permissive setup)
8787 rev : v4.0.0-alpha.8
8888 hooks :
8989 - id : prettier
90- types_or : [yaml, markdown]
91- args : [--prose-wrap=always]
90+ types_or : [ yaml, markdown ]
91+ args : [ --prose-wrap=always ]
9292
9393 # Shell script checks
9494 - repo : https://github.com/shellcheck-py/shellcheck-py
@@ -102,22 +102,22 @@ repos:
102102 rev : v0.38.0
103103 hooks :
104104 - id : markdownlint
105- args : [--fix]
105+ args : [ --fix ]
106106 exclude : ^.github/
107107
108108 # Python upgrade syntax
109109 - repo : https://github.com/asottile/pyupgrade
110110 rev : v3.15.0
111111 hooks :
112112 - id : pyupgrade
113- args : [--py38-plus]
113+ args : [ --py38-plus ]
114114
115115 # Check for common misspellings
116116 - repo : https://github.com/codespell-project/codespell
117117 rev : v2.2.6
118118 hooks :
119119 - id : codespell
120- args : ["--skip=.git,*.pyc,*.pyo,*.egg-info,.venv,build,dist"]
120+ args : [ "--skip=.git,*.pyc,*.pyo,*.egg-info,.venv,build,dist" ]
121121 exclude : ^(.github/|docs/|.venv/)
122122
123123 # Local hooks
@@ -129,7 +129,7 @@ repos:
129129 language : system
130130 pass_filenames : false
131131 always_run : true
132- stages : [pre-push]
132+ stages : [ pre-push ]
133133
134134 - id : requirements-txt-fixer
135135 name : Fix requirements.txt
143143 autofix_commit_msg : " [pre-commit.ci] auto fixes from pre-commit hooks"
144144 autoupdate_schedule : monthly
145145 autoupdate_commit_msg : " [pre-commit.ci] pre-commit autoupdate"
146- skip : [tests] # Don't run tests in pre-commit CI
146+ skip : [ tests ] # Don't run tests in pre-commit CI
0 commit comments