Skip to content

Commit

Permalink
Migrated from black and isort to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Mar 3, 2024
1 parent 1b1d77f commit 17f0626
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 85 deletions.
26 changes: 9 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: check-json
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
args: [--markdown-linebreak-ext=md]
- id: mixed-line-ending
args: [ --fix=lf ]
args: [--fix=lf]
- id: end-of-file-fixer
exclude: .devcontainer/devcontainer-lock.json
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.267"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.316
rev: v1.1.352
hooks:
- id: pyright
- id: pyright
67 changes: 4 additions & 63 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ distribution = true
dev = [
"pre-commit>=3.6.2",
"ruff>=0.3.0",
"black>=24.2.0",
"isort>=5.13.2",
"pyright>=1.1.352",
]
test = [
Expand All @@ -40,9 +38,6 @@ test = [
pre-commit = "pre-commit run --all-files"
test = "pytest"

[tool.isort]
profile = "black"

[tool.ruff]
line-length = 120

Expand Down

0 comments on commit 17f0626

Please sign in to comment.