Skip to content

Commit

Permalink
chore: update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve committed Jan 31, 2024
1 parent 4f94866 commit c7c6ff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.15"
hooks:
- id: ruff-format
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.15"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/kynan/nbstripout
rev: "0.6.1"
hooks:
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ python = ["3.9", "3.10", "3.11"]

[tool.ruff]
format.quote-style = "single"
lint.pydocstyle.convention = "numpy"
target-version = "py39"
line-length = 79
select = [
Expand All @@ -80,8 +81,13 @@ select = [
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"B028", # allow warning without stacklevel
"C901", # allow functions with a high complexity
]
extend-select = ["Q"]
extend-include = ["*.ipynb"]
flake8-quotes.inline-quotes = "single"
isort.known-first-party = ["elisa"]
isort.combine-as-imports = true

Expand Down

0 comments on commit c7c6ff1

Please sign in to comment.