Skip to content

Commit

Permalink
Migrate "qa" to ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jan 15, 2024
1 parent 45e2bec commit 9feaaf2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,42 @@ include = [
[tool.pytest.ini_options]
addopts = "--doctest-modules"
testpaths = ["gpyutils"]

[tool.ruff]
line-length = 80

[tool.ruff.lint]
extend-select = [
"E",
"N",
"W",
# "I",
# "UP",
# "ANN",
# "B",
"A",
"COM",
"CPY",
# "C4",
"EXE",
"ISC",
"PIE",
"PT",
# "Q",
"RSE",
# "RET",
# "SLOT",
# "SIM",
"TCH",
# "ARG",
# "ERA",
"PGH",
# "PL",
# "PERF",
# "FURB",
# "RUF",
]

[tool.ruff.lint.flake8-copyright]
min-file-size = 1
notice-rgx = "\\(c\\) \\d{4}(-\\d{4})?"
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ commands =
[testenv:qa]
skipinstall = True
deps =
pycodestyle
pyflakes
ruff
commands =
pycodestyle {posargs:add-remotes gpyutils timeline}
pyflakes {posargs:add-remotes gpyutils timeline}
ruff check --preview

[testenv:upload]
skipinstall = True
Expand Down

0 comments on commit 9feaaf2

Please sign in to comment.