Skip to content

Commit

Permalink
py: update ruff config on pyproject (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella Basso do Amaral <[email protected]>
  • Loading branch information
isinyaaa authored May 15, 2024
1 parent 23cce10 commit 734917a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
59 changes: 28 additions & 31 deletions clients/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pytest = "^7.4.2"
coverage = { extras = ["toml"], version = "^7.3.2" }
pytest-cov = "^4.1.0"
sphinx-autobuild = "^2021.3.14"
ruff = "^0.1.6"
ruff = "^0.4.4"
mypy = "^1.7.0"
testcontainers = "^3.7.1"

Expand All @@ -55,6 +55,9 @@ line-length = 119

[tool.ruff]
target-version = "py39"
respect-gitignore = true

[tool.ruff.lint]
select = [
"F", # pyflakes
# pycodestyle
Expand All @@ -75,20 +78,15 @@ select = [
"SIM", # flake8-simplify
"UP", # pyupgrade
]
respect-gitignore = true
ignore = [
"D105", # missing docstring in magic method
"E501", # line too long
"S101", # use of assert detected
]
mccabe.max-complexity = 8
per-file-ignores = { "tests/**/*.py" = [
"D", # missing docstring in public module
] }

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.per-file-ignores]
"tests/**/*.py" = [
"D", # missing docstring in public module
]

[tool.ruff.mccabe]
max-complexity = 8

0 comments on commit 734917a

Please sign in to comment.