Skip to content

Commit

Permalink
Replace black with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Nov 25, 2024
1 parent 389ebda commit fac3f8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
13 changes: 3 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.0"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.ruff]
line-length = 79
line-length = 88
target-version = "py38"

[tool.ruff.lint]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ cryptography>=35.0.0
py3rijndael>=0.3.3

# dev
black>=24.8
mypy>=1.13
pre-commit>=3.5
pytest>=8.3.3
Expand Down

0 comments on commit fac3f8c

Please sign in to comment.