Skip to content

Commit

Permalink
chore: bump ruff pre-commit hook version
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Sep 5, 2024
1 parent fb4e89a commit 7d8fa88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,6 @@ docs/api/_autosummary

# tests
tests/figures

# Ruff
.ruff_cache
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ repos:
rev: v1.1.1
hooks:
- id: doc8
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.270
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ include-package-data = true

[tool.ruff]
target-version = "py38"
line-length = 120

[tool.ruff.lint]
exclude = [
".eggs",
".git",
Expand Down Expand Up @@ -136,7 +139,6 @@ ignore = [
# Missing docstring in magic method
"D105",
]
line-length = 120
select = [
"D", # flake8-docstrings
"E", # pycodestyle
Expand All @@ -155,15 +157,15 @@ select = [
"RET", # flake8-raise
]
unfixable = ["B", "UP", "C4", "BLE", "T20", "RET"]
[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"*/__init__.py" = ["F401"]
"docs/*" = ["D"]
[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"

[tool.black]
Expand Down

0 comments on commit 7d8fa88

Please sign in to comment.