Skip to content

Commit

Permalink
Merge pull request #44 from jmanuel1/ruff-lint
Browse files Browse the repository at this point in the history
Configure ruff lint
  • Loading branch information
jmanuel1 authored Nov 16, 2024
2 parents 7616c11 + 3e07de3 commit 0b2d1bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ readme = "README.md"

[project.optional-dependencies]
dev = [
"ruff",
"flake8>=7.1.0,<8",
"mypy>=1.12.0,<2",
"pre-commit>=2.6.0,<3",
"pylsp-mypy",
"python-lsp-server[all]>=1.12.0,<2",
"ruff",
"snakeviz",
]
test = [
Expand Down Expand Up @@ -65,3 +65,9 @@ target-version = "py312"

[tool.ruff.format]
quote-style = "single"

[tool.ruff.lint]
select = ["E", "F", "C90"]

[tool.ruff.lint.mccabe]
max-complexity = 14 # max allowed, mccabe equivalent setting would be 15 for warrning *at* 15

0 comments on commit 0b2d1bf

Please sign in to comment.