Skip to content

Commit

Permalink
build(ruff): upgrade to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Feb 12, 2024
1 parent dee6f36 commit cf50304
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 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.

16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ colorama = "^0.4.6"
rich-argparse = "^1.4.0"

[tool.poetry.group.dev.dependencies]
ruff = "0.1.6"
ruff = "0.2.1"
tomli = "^2.0.1"
types-python-dateutil = "^2.8.19.13"
types-pyyaml = "^6.0.12.10"
Expand Down Expand Up @@ -126,6 +126,10 @@ help = "Run Pyright"
pythonVersion = "3.8"

[tool.ruff]
src = ["src", "tests"]
target-version = "py38"

[tool.ruff.lint]
select = [
"A", # flake8-builtins
"AIR", # Airflow
Expand All @@ -150,7 +154,7 @@ select = [
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
# "ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # Perflint
"PGH", # pygrep-hooks
Expand Down Expand Up @@ -188,19 +192,17 @@ ignore = [
"A002", # builtin-argument-shadowing
"PGH003", # blanket-type-ignore
]
src = ["src", "tests"]
target-version = "py38"

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

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
allow-magic-value-types = ["int", "str"]
max-args = 12
max-branches = 20
max-statements = 100

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"src/remarshal/main.py" = ["ARG001", "B904", "EM103", "RET506", "S506", "SIM115"]
"tests/test_remarshal.py" = ["F841", "PT011", "SLF001"]
"tests/*" = ["S101"]

0 comments on commit cf50304

Please sign in to comment.