Skip to content

Commit

Permalink
Merge pull request #1260 from zacharyburnett/ruff
Browse files Browse the repository at this point in the history
CI: use `ruff` for linting instead of `flake8`
  • Loading branch information
mattip authored May 2, 2023
2 parents 9c2f028 + 4bc01e8 commit 15075b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repos:
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.257'
hooks:
- id: flake8
exclude: ^(asv/extern|test/example_results/cheetah)
- id: ruff
args: ["--fix"]
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ doc = [
"sphinx_bootstrap_theme",
]
dev = [
"flake8",
"ruff",
"isort >= 5.11.5",
]
hg = [
Expand Down Expand Up @@ -91,6 +91,15 @@ namespaces = false
[tool.pytest.ini_options]
addopts = "-p no:logging"

[tool.ruff]
line-length = 99
extend-ignore = [
"E741", # Do not use variables named 'I', 'O', or 'l'
]
extend-exclude = [
"test/example_results/cheetah",
]

[tool.isort]
line_length = 99
only_sections = true
Expand Down

0 comments on commit 15075b7

Please sign in to comment.