Skip to content

Commit

Permalink
maint: add ruff (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 authored Nov 7, 2023
1 parent 6b4b066 commit 9e8cc1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
19 changes: 5 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,12 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear~=22.7]
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ strict_equality = true
module = ["docutils.*", "yaml.*"]
ignore_missing_imports = true

[tool.isort]
profile = "black"
src_paths = ["sphinx_external_toc", "tests"]

[tool.ruff.lint.isort]
force-sort-within-sections = true

0 comments on commit 9e8cc1f

Please sign in to comment.