11repos :
2- - repo : https://github.com/PyCQA/docformatter
3- rev : " eb1df347edd128b30cd3368dddc3aa65edcfac38"
4- hooks :
5- - id : docformatter
6- args : [--in-place, --wrap-descriptions=79, --style=google]
7- - repo : https://github.com/asottile/add-trailing-comma
8- rev : " v3.1.0"
9- hooks :
10- - id : add-trailing-comma
11- - repo : https://github.com/psf/black.git
12- rev : " 24.10.0"
13- hooks :
14- - id : black
152 - repo : https://github.com/mwouts/jupytext
16- rev : v1.14.1
3+ rev : " v1.16.4b "
174 hooks :
185 - id : jupytext
19- entry : jupytext --to py *.ipynb
6+ entry : jupytext
207 language : python
218 types : [jupyter]
229 args :
2310 - --from=ipynb
24- - --to=py:percent
25- - --pipe=black
26- - --pipe=isort - --profile black --filter-files
27- - --opt=notebook_metadata_filter=-kernelspec
11+ - --to=py:light
12+ - --set-formats=ipynb,py:light
13+ - --quiet
2814 - --sync
29- - --pre-commit
30- - --paired-paths
31- additional_dependencies :
32- - black==22.10.0
33- - isort==5.11.5
15+ - --warn-only
3416 exclude : ' .*\.md$'
17+ - repo : https://github.com/PyCQA/docformatter
18+ rev : " eb1df347edd128b30cd3368dddc3aa65edcfac38"
19+ hooks :
20+ - id : docformatter
21+ args : [--in-place, --wrap-descriptions=79, --style=google]
22+ - repo : https://github.com/psf/black.git
23+ rev : " 24.10.0"
24+ hooks :
25+ - id : black
26+
3527 - repo : https://github.com/nbQA-dev/nbQA
3628 rev : 1.9.0
3729 hooks :
@@ -52,9 +44,11 @@ repos:
5244 rev : " 5.13.2"
5345 hooks :
5446 - id : isort
47+ entry : isort
5548 args :
56- - --check
49+ - --profile=black
5750 - --float-to-top
51+
5852 - repo : https://github.com/nbQA-dev/nbQA
5953 rev : " 1.9.0"
6054 hooks :
@@ -85,18 +79,8 @@ repos:
8579 types_or : [jupyter, markdown]
8680 additional_dependencies : [isort]
8781 args :
88- - --check
89- - --float-to-top
90-
91- - repo : https://github.com/pre-commit/pre-commit-hooks
92- rev : " v5.0.0"
93- hooks :
94- - id : trailing-whitespace
95- - id : end-of-file-fixer
96- - id : check-yaml
97- - id : debug-statements
98- - id : name-tests-test
99- - id : requirements-txt-fixer
82+ - --profile=black
83+ - --float-to-top
10084
10185 - repo : https://github.com/codespell-project/codespell
10286 rev : v2.3.0
@@ -113,7 +97,7 @@ repos:
11397 hooks :
11498 - id : nbqa-flake8
11599 args :
116- - --ignore=E501,E712,W291,F632,E203,F821,F403,W391
100+ - --ignore=E501,E712,W291,F632,E203,F821,F403,W391,F401
117101 - --exclude=.*,__init__.py
118102 name : nbqa-flake8
119103 description : Run 'flake8' on a Jupyter Notebook
@@ -131,7 +115,7 @@ repos:
131115 hooks :
132116 - id : flake8
133117 args :
134- - --ignore=E501,E712,W291,F632,E203,F821,F403,W391
118+ - --ignore=E501,E712,W291,F632,E203,F821,F403,W391,F401
135119 - --exclude=.*,__init__.py
136120 additional_dependencies :
137121 - flake8-variables-names
@@ -236,11 +220,11 @@ repos:
236220 - --ignore=no_check*,__init__.py
237221 - --max-line-length=79
238222 - --const-naming-style=any
239- - --disable=E0401,W0104,R0903,R1721,E1101,E0611,F0002,C0305
223+ - --disable=E0401,W0104,R0903,R1721,E1101,E0611,F0002,C0305,C0303,E2515
240224
241225
242- - repo : https://github.com/pre-commit/mirrors- pylint
243- rev : " v3.0.0a5 "
226+ - repo : https://github.com/pylint-dev/ pylint
227+ rev : " v3.3.1 "
244228 hooks :
245229 - id : pylint
246230 name : pylint
@@ -252,7 +236,7 @@ repos:
252236 " --ignore=no_check*,__init__.py" ,
253237 " --max-line-length=79" ,
254238 " --const-naming-style=any" ,
255- " --disable=E0401,W0104,R0903,R1721,E1101,E0611,F0002,C0305,line-too-long" ,
239+ " --disable=E0401,W0104,R0903,R1721,E1101,E0611,F0002,C0305,line-too-long,C0303,E2515 "
256240 ]
257241 additional_dependencies : [pylint]
258242
@@ -267,18 +251,3 @@ repos:
267251 require_serial : true
268252 types_or : [jupyter, markdown]
269253 additional_dependencies : [pydocstyle]
270-
271- - repo : https://github.com/christophmeissner/pytest-pre-commit
272- rev : 1.0.0
273- hooks :
274- - id : pytest
275- name : " Run pytest with HTML report"
276- entry : pytest
277- args :
278- - " --html=calculator_report.html"
279- - " --self-contained-html"
280- language : python
281- pass_filenames : false
282- always_run : true
283- additional_dependencies : [pytest-html]
284-
0 commit comments