Skip to content

Commit

Permalink
chore(lint): update ruff and config (#22)
Browse files Browse the repository at this point in the history
New ignore: Too many arguments on test functions

* chore(lint): Ruff autofixes for new pylint
  • Loading branch information
lengau authored Feb 1, 2023
1 parent 9c1ea2a commit f3d35a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ select = [ # Base linting rule selections.
"ISC", # Implicit string concatenation that can cause subtle issues
"ICN", # Only use common conventions for import aliases.
"Q", # Consistent quotations
"RET" # Simpler logic after return, raise, continue or break
"RET", # Simpler logic after return, raise, continue or break
"UP018", "C408", # Convert type calls to literals. The latest pylint enforces this, but ruff has auto-fixes.
]
extend-select = [
# These sets are still frequently getting new rules.
Expand Down Expand Up @@ -187,6 +188,7 @@ ignore = [
"S101", # Allow assertions in tests
"S103", # Allow `os.chmod` setting a permissive mask `0o555` on file or directory
"S108", # Allow Probable insecure usage of temporary file or directory
"PLR0913", # Allow many arguments for test functions
]
# isort leaves init files alone by default, this makes ruff ignore them too.
"__init__.py" = ["I001"]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ deps =
# renovate: datasource=pypi
black>=22.12.0
# renovate: datasource=pypi
ruff==0.0.236
ruff==0.0.239
# renovate: datasource=pypi
codespell[tomli]>=2.2.2
# renovate: datasource=pypi
Expand Down

0 comments on commit f3d35a6

Please sign in to comment.