Skip to content

Commit

Permalink
pre-commit: Switch to ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Jan 16, 2024
1 parent b4a21c0 commit de14dd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Expand Up @@ -20,10 +20,14 @@ repos:
exclude: (.*\.mbox)|(.*\.svg)|(.*\.sql)|(.*\.conf)
- id: remove-crlf
exclude: (.*\.mbox)|(.*\.svg)
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.13
hooks:
- id: flake8
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
- repo: https://github.com/openstack/bashate
rev: 2.1.1
hooks:
Expand All @@ -33,7 +37,3 @@ repos:
hooks:
- id: vacuum
files: ^docs/api/schemas/(latest|v\d\.\d)/patchwork.yaml
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
6 changes: 4 additions & 2 deletions pyproject.toml
@@ -1,3 +1,5 @@
[tool.black]
[tool.ruff]
line-length = 79
skip-string-normalization = true

[tool.ruff.format]
quote-style = "single"

0 comments on commit de14dd8

Please sign in to comment.