22 - repo : https://github.com/pre-commit/pre-commit-hooks
33 rev : v3.2.0
44 hooks :
5- - id : check-case-conflict # Different OSes
6- name : ' Check case conflict: Naming of files is compatible with all OSes'
7- - id : check-docstring-first
8- name : ' Check docstring first: Ensures Docstring present and first'
9- - id : detect-private-key
10- name : ' Detect private key: Prevent commit of env related keys'
11- - id : trailing-whitespace
12- name : ' Trailing whitespace: Remove empty spaces'
5+ - id : check-case-conflict # Different OSes
6+ name : " Check case conflict: Naming of files is compatible with all OSes"
7+ - id : check-docstring-first
8+ name : " Check docstring first: Ensures Docstring present and first"
9+ - id : detect-private-key
10+ name : " Detect private key: Prevent commit of env related keys"
11+ - id : trailing-whitespace
12+ name : " Trailing whitespace: Remove empty spaces"
1313 - repo : https://github.com/nbQA-dev/nbQA
14- rev : 1.7.0
14+ rev : 1.8.5
1515 hooks :
16- - id : nbqa-ruff
17- name : ' ruff nb: Check for errors, styling issues and complexity'
18- - id : nbqa-mypy
19- name : ' mypy nb: Static type checking'
20- - id : nbqa-isort
21- name : ' isort nb: Sort file imports'
22- - id : nbqa-pyupgrade
23- name : ' pyupgrade nb: Updates code to Python 3.8 + code convention'
24- args : [&py_version --py37 -plus]
25- - id : nbqa-black
26- name : ' black nb: PEP8 compliant code formatter'
16+ - id : nbqa-ruff
17+ name : " ruff nb: Check for errors, styling issues and complexity"
18+ - id : nbqa-mypy
19+ name : " mypy nb: Static type checking"
20+ - id : nbqa-isort
21+ name : " isort nb: Sort file imports"
22+ - id : nbqa-pyupgrade
23+ name : " pyupgrade nb: Updates code to Python 3.9 + code convention"
24+ args : [&py_version --py38 -plus]
25+ - id : nbqa-black
26+ name : " black nb: PEP8 compliant code formatter"
2727 - repo : local
2828 hooks :
29- - id : mypy
30- name : ' mypy: Static type checking'
31- entry : mypy
32- language : system
33- types : [python]
29+ - id : mypy
30+ name : " mypy: Static type checking"
31+ entry : mypy
32+ language : system
33+ types : [python]
3434 - repo : local
3535 hooks :
36- - id : ruff-check
37- name : ' Ruff: Check for errors, styling issues and complexity, and fixes issues if possible (including import order)'
38- entry : ruff check
39- language : system
40- args : [ --fix, --no-cache ]
41- - id : ruff-format
42- name : ' Ruff: format code in line with PEP8'
43- entry : ruff format
44- language : system
45- args : [ --no-cache ]
36+ - id : ruff-check
37+ name : " Ruff: Check for errors, styling issues and complexity, and fixes issues if possible (including import order)"
38+ entry : ruff check
39+ language : system
40+ args : [--fix, --no-cache]
41+ - id : ruff-format
42+ name : " Ruff: format code in line with PEP8"
43+ entry : ruff format
44+ language : system
45+ args : [--no-cache]
4646 - repo : local
4747 hooks :
48- - id : codespell
49- name : ' codespell: Check for grammar'
50- entry : codespell
51- language : system
52- types : [python]
53- args : [-L mot] # Skip the word "mot"
48+ - id : codespell
49+ name : " codespell: Check for grammar"
50+ entry : codespell
51+ language : system
52+ types : [python]
53+ args : [-L mot] # Skip the word "mot"
5454 - repo : https://github.com/asottile/pyupgrade
5555 rev : v3.4.0
5656 hooks :
57- - id : pyupgrade
58- name : ' pyupgrade: Updates code to Python 3.8 + code convention'
59- args : [*py_version]
57+ - id : pyupgrade
58+ name : " pyupgrade: Updates code to Python 3.9 + code convention"
59+ args : [*py_version]
0 commit comments