Skip to content

Commit 2051d0b

Browse files
juanitorduzricardoV94maresb
authored
Use ruff linter (#7091)
Co-authored-by: Ricardo Vieira <[email protected]> Co-authored-by: Ben Mares <[email protected]>
1 parent 2c355f1 commit 2051d0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+219
-613
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,13 @@ repos:
2323
- --exclude=scripts/
2424
- --exclude=binder/
2525
- --exclude=versioneer.py
26-
- repo: https://github.com/PyCQA/isort
27-
rev: 5.13.2
26+
- repo: https://github.com/astral-sh/ruff-pre-commit
27+
rev: v0.1.11
2828
hooks:
29-
- id: isort
30-
name: isort
31-
- repo: https://github.com/asottile/pyupgrade
32-
rev: v3.15.0
33-
hooks:
34-
- id: pyupgrade
35-
args: [--py37-plus]
36-
- repo: https://github.com/psf/black
37-
rev: 23.12.1
38-
hooks:
39-
- id: black
40-
- id: black-jupyter
41-
- repo: https://github.com/PyCQA/pylint
42-
rev: v3.0.3
43-
hooks:
44-
- id: pylint
45-
args: [--rcfile=.pylintrc]
46-
files: ^pymc/
47-
exclude: (?x)(pymc/_version.py)
48-
- repo: https://github.com/PyCQA/pydocstyle
49-
rev: 6.3.0
50-
hooks:
51-
- id: pydocstyle
52-
args:
53-
- --ignore=D100,D101,D102,D103,D104,D105,D107,D200,D202,D203,D204,D205,D209,D212,D213,D301,D400,D401,D403,D413,D415,D417
54-
files: ^pymc/
55-
exclude: ^pymc/tests/
29+
- id: ruff
30+
args: ["--fix", "--show-source"]
31+
- id: ruff-format
32+
args: ["--line-length=100"]
5633
- repo: https://github.com/MarcoGorelli/madforhooks
5734
rev: 0.4.1
5835
hooks:

0 commit comments

Comments
 (0)