Skip to content

Commit 9ae1ca4

Browse files
committed
add ruff support
1 parent 7fb9c39 commit 9ae1ca4

18 files changed

+88
-553
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
## Tell us about it
1111

12-
The more specific the better.
12+
The more specific the better.
1313

1414
## Thoughts on implementation
1515

.pre-commit-config.yaml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
repos:
2-
- repo: local
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.1.14
4+
hooks:
5+
- id: ruff
6+
args: ["--fix", "--show-source"]
7+
- id: ruff-format
8+
args: ["--line-length=100"]
9+
- repo: https://github.com/pre-commit/mirrors-mypy
10+
rev: v1.8.0
311
hooks:
4-
- id: black
5-
name: black
6-
entry: black
7-
language: system
8-
types: [python]
9-
files: ^pymc_bart/
10-
- id: pylint
11-
name: pylint
12-
entry: pylint --rcfile=.pylintrc
13-
language: system
14-
types: [python]
15-
files: ^pymc_bart/
1612
- id: mypy
17-
name: mypy
18-
entry: mypy
19-
language: system
20-
types: [python]
13+
args: [--ignore-missing-imports]
2114
files: ^pymc_bart/
15+
additional_dependencies: [numpy<1.25.0, pandas-stubs]
2216
- repo: https://github.com/pre-commit/pre-commit-hooks
2317
rev: v3.2.0
2418
hooks:

0 commit comments

Comments
 (0)