Skip to content

Commit

Permalink
Merge pull request #23 from astrojuanlu/update-ruff
Browse files Browse the repository at this point in the history
Upgrade ruff configuration
  • Loading branch information
astrojuanlu authored Mar 9, 2024
2 parents f29054d + 9bba161 commit a9b57a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: check-merge-conflict

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
2 changes: 1 addition & 1 deletion template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: check-merge-conflict

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
12 changes: 7 additions & 5 deletions template/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ doc = [
"sphinx-copybutton",
]

[tool.pdm.version]
source = "scm"

[tool.ruff]
show-fixes = true

[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle
Expand All @@ -59,13 +64,10 @@ select = [
"PL", # Pylint
]

[tool.pdm.version]
source = "scm"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["D", "PLR2004"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.mypy]
Expand Down

0 comments on commit a9b57a6

Please sign in to comment.