Skip to content

Commit 4396b73

Browse files
committed
Add ruff to dependencies
1 parent d50f0b5 commit 4396b73

File tree

4 files changed

+293
-257
lines changed

4 files changed

+293
-257
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,5 @@ dmypy.json
129129
.pyre/
130130

131131
.vscode/
132+
*output*/
133+
wandb/

.pre-commit-config.yaml

+6-10
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ repos:
2121
hooks:
2222
- id: isort
2323
# Python static analysis
24-
- repo: https://github.com/pycqa/flake8
25-
rev: '5.0.4'
24+
- repo: https://github.com/charliermarsh/ruff-pre-commit
25+
# Ruff version.
26+
rev: 'v0.0.199'
2627
hooks:
27-
- id: flake8
28-
additional_dependencies:
29-
- darglint~=1.8.1
30-
- flake8-blind-except==0.2.1
31-
- flake8-builtins~=1.5.3
32-
- flake8-commas~=2.1.0
33-
- flake8-debugger~=4.1.2
34-
- flake8-docstrings~=1.6.0
28+
- id: ruff
29+
# Respect `exclude` and `extend-exclude` settings.
30+
args: ["--force-exclude"]
3531
# Shell static analysis
3632
- repo: https://github.com/koalaman/shellcheck-precommit
3733
rev: v0.8.0

0 commit comments

Comments
 (0)