Skip to content

Commit

Permalink
Switch to using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Oct 26, 2022
1 parent 845f5d7 commit 4013176
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
13 changes: 0 additions & 13 deletions .flake8

This file was deleted.

12 changes: 3 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ repos:
args: ["--py38-plus"]
exclude: "asdf/extern/.*"

- repo: https://github.com/PyCQA/autoflake
rev: v1.7.7
hooks:
- id: autoflake

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
Expand All @@ -59,11 +54,10 @@ repos:
hooks:
- id: blacken-docs

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.83
hooks:
- id: flake8
exclude: "asdf/extern/.*|docs/.*"
- id: lint

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ filter_files = true
line_length = 120
extend_skip_glob = ["asdf/extern/*", ".eggs/*", ".tox/*"]

[tool.ruff]
line-length = 120
exclude = ["asdf/extern", "docs"]

[tool.autoflake]
remove-all-unused-imports = true
ignore-init-module-imports = true
Expand Down

0 comments on commit 4013176

Please sign in to comment.