Skip to content

Commit

Permalink
Update ruff settings, pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Apr 8, 2024
1 parent a5396f4 commit 94c2936
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -28,13 +28,13 @@ repos:
- javascript
- json
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.3.5
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ extend-exclude = [
"*/migrations/*",
]
line-length = 88
target-version = "py39"

[tool.ruff.lint]
ignore = []
select = [
# Reference: https://docs.astral.sh/ruff/rules/
"B", # flake8-bugbear
Expand All @@ -36,7 +40,3 @@ select = [
"RUF100", # unused-noqa
"RUF200", # invalid-pyproject-toml
]
target-version = "py39"

[tool.ruff.lint]
ignore = []
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ commands =
[testenv:ruff]
skip_install = true
deps = ruff
commands = ruff check {posargs:--show-source .}
commands = ruff check {posargs:--output-format=full .}

0 comments on commit 94c2936

Please sign in to comment.