Skip to content

Commit

Permalink
update ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 3, 2024
1 parent e611023 commit 26663e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ black: ## Python files linting (via black)
@git ls-files '*.py' | xargs $(PYTHON) -m black --check --safe

ruff: ## Run ruff linter.
@git ls-files '*.py' | xargs $(PYTHON) -m ruff check --no-cache
@git ls-files '*.py' | xargs $(PYTHON) -m ruff check --no-cache --output-format=concise

_pylint: ## Python pylint (not mandatory, just run it from time to time)
@git ls-files '*.py' | xargs $(PYTHON) -m pylint --rcfile=pyproject.toml --jobs=${NUM_WORKERS}
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ ignore = [
"C90", # mccabe (function `X` is too complex)
"COM812", # Trailing comma missing
"D", # pydocstyle
"DOC201", # `return` is not documented in docstring
"DOC402", # `yield` is not documented in docstring
"DOC501", # Raised exception `X` missing from docstring
"DTZ", # flake8-datetimez
"E203", # [*] Whitespace before ':' (clashes with black)
"EM", # flake8-errmsg
Expand Down Expand Up @@ -73,6 +76,7 @@ ignore = [
"TRY003", # Avoid specifying long messages outside the exception class
"TRY300", # Consider moving this statement to an `else` block
"TRY301", # Abstract `raise` to an inner function
"UP031", # Use format specifiers instead of percent format
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 26663e7

Please sign in to comment.