File tree Expand file tree Collapse file tree 2 files changed +16
-29
lines changed Expand file tree Collapse file tree 2 files changed +16
-29
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.5 .0
3
+ rev : v4.6 .0
4
4
hooks :
5
5
- id : check-merge-conflict
6
6
- id : check-toml
@@ -10,37 +10,24 @@ repos:
10
10
- id : no-commit-to-branch
11
11
args : [--branch, main]
12
12
- id : trailing-whitespace
13
- - repo : https://github.com/PyCQA/isort
14
- rev : 5.13.2
15
- hooks :
16
- - id : isort
17
- name : isort
13
+
18
14
- repo : https://github.com/asottile/pyupgrade
19
- rev : v3.15 .0
15
+ rev : v3.16 .0
20
16
hooks :
21
17
- id : pyupgrade
22
- args : [--py37-plus]
23
- - repo : https://github.com/psf/black
24
- rev : 24.1.1
25
- hooks :
26
- - id : black
27
- - id : black-jupyter
28
- - repo : https://github.com/PyCQA/pylint
29
- rev : v3.0.3
18
+ args : [--py310-plus]
19
+
20
+ - repo : https://github.com/astral-sh/ruff-pre-commit
21
+ rev : v0.4.8
30
22
hooks :
31
- - id : pylint
32
- args : [--rcfile=.pylintrc]
33
- files : ^pymc_experimental/
23
+ - id : ruff
24
+ args : [ --fix, --exit-non-zero-on-fix ]
25
+ - id : ruff-format
26
+ types_or : [ python, pyi, jupyter ]
27
+
34
28
- repo : https://github.com/MarcoGorelli/madforhooks
35
29
rev : 0.4.1
36
30
hooks :
37
31
- id : no-print-statements
38
32
exclude : _version.py
39
33
files : ^pymc_experimental/
40
- - repo : local
41
- hooks :
42
- - id : no-relative-imports
43
- name : No relative imports
44
- entry : from \.[\.\w]* import
45
- types : [python]
46
- language : pygrep
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ exclude_lines = [
32
32
" if TYPE_CHECKING:" ,
33
33
]
34
34
35
- [tool .isort ]
36
- profile = " black"
37
- # lines_between_types = 1
38
-
39
35
[tool .nbqa .mutate ]
40
36
isort = 1
41
37
black = 1
42
38
pyupgrade = 1
39
+
40
+ [tool .ruff .lint .per-file-ignores ]
41
+ 'tests/*.py' = [' F841' ] # Disable unused variable warning for test files
42
+ 'tests/statespace/*.py' = [' F401' , ' F811' ] # Disable unused import warning for test files; removes shared fixture imports
You can’t perform that action at this time.
0 commit comments