Skip to content

Commit

Permalink
chore(lint): add max compelxity rule
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 22, 2023
1 parent a6b0be9 commit bd9fe1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pyfzf = "^0.3.1"

[tool.ruff]
line-length = 88
select = ["F","E","W","I","N", "D", "B", "Q", "C4", "UP", "PT", "T20", "RET", "RUF", "SLF", "SIM"]
select = ["F","E","W","I","N", "D", "B", "Q", "C4", "UP", "PT", "T20", "RET", "RUF", "SLF", "SIM", "C90"]
src = ["src", "examples", "test"]
ignore = [
# make docstrings optional
Expand All @@ -51,6 +51,8 @@ ignore = [
"SLF001",
]

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

[tool.ruff.extend-per-file-ignores]
"examples/*.py" = ["T201"]
Expand Down

1 comment on commit bd9fe1d

@hairmare
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

Please sign in to comment.