Skip to content

Commit

Permalink
Use ruff in place of black and reorder-python-imports
Browse files Browse the repository at this point in the history
Unfortunately black and reorder-python-imports are no longer compatible between each other:

asottile/reorder-python-imports#367
asottile/reorder-python-imports#366
psf/black#4175

Take this opportunity to try out ruff.
  • Loading branch information
nicoddemus committed Jan 29, 2024
1 parent 001d2c0 commit 428f5d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Expand Up @@ -3,10 +3,6 @@ repos:
rev: v2.2.6
hooks:
- id: codespell
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand All @@ -23,11 +19,13 @@ repos:
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: reorder-python-imports
args: ['--application-directories=execnet', --py37-plus]
- id: ruff
args: [ --fix ]
exclude: "^doc/"
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: 'v1.1.1'
hooks:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -45,6 +45,9 @@ testing = [
[project.urls]
Homepage = "https://execnet.readthedocs.io/en/latest/"

[tool.ruff.lint]
ignore = ["E741"]

[tool.hatch.version]
source = "vcs"

Expand Down

0 comments on commit 428f5d4

Please sign in to comment.