Skip to content

Commit

Permalink
[python ci] Update dependency ruff to ^0.2.0 (#209)
Browse files Browse the repository at this point in the history
* [python ci] Update dependency ruff to ^0.2.0

* Update Lint rules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dragomir Penev <[email protected]>
  • Loading branch information
renovate[bot] and dragomirp authored Feb 5, 2024
1 parent 001c0a8 commit fe580b0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

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

14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ optional = true

[tool.poetry.group.format.dependencies]
black = "^24.1.1"
ruff = "^0.1.15"
ruff = "^0.2.0"

[tool.poetry.group.lint]
optional = true
Expand Down Expand Up @@ -105,10 +105,12 @@ target-version = ["py38"]
[tool.ruff]
# preview and explicit preview are enabled for CPY001
preview = true
explicit-preview-rules = true
target-version = "py38"
src = ["src", "."]
line-length = 99

[tool.ruff.lint]
explicit-preview-rules = true
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "CPY001"]
extend-ignore = [
"D203",
Expand All @@ -127,16 +129,16 @@ extend-ignore = [
# Ignore D107 Missing docstring in __init__
ignore = ["E501", "D107"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D101", "D102", "D103", "D104"]

[tool.ruff.flake8-copyright]
[tool.ruff.lint.flake8-copyright]
# Check for properly formatted copyright header in each file
author = "Canonical Ltd."
notice-rgx = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 10

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

0 comments on commit fe580b0

Please sign in to comment.