Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
livhe committed Sep 10, 2024
1 parent 65fc40b commit 968ebef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ skip_gitignore = true

[tool.poe.tasks]
_format_black = "black ."
_format_ruff = "ruff . --fix-only"
_format_ruff = "ruff check . --fix-only"
format = { sequence = ["_format_black", "_format_ruff"], help = "Format all files." }
lint = { cmd = "ruff src --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff src --format=github"
_lint_ci = "ruff check src --output-format=github"
_check_black = "black . --check"
ci_check = { sequence = ["_check_black", "_lint_ci"], help = "Check all potential format and linting issues." }
test = {cmd = "pytest --cov=biopsykit -cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
Expand Down
7 changes: 4 additions & 3 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
line-length = 120
target-version = "py38"

[lint]
select = [
# pyflakes
"F",
Expand Down Expand Up @@ -104,12 +105,12 @@ exclude = [
"examples"
]

[pylint]
[lint.pylint]
max-args = 15

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

[pyupgrade]
[lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

0 comments on commit 968ebef

Please sign in to comment.