Skip to content

Commit

Permalink
feat: python format + lint (ruff, mypy)
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Feb 6, 2025
1 parent b49b388 commit 16a29ee
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,26 @@ dev = [
"pytest>=8.1.1",
"pytest-asyncio>=0.25.3",
"typing_extensions; python_version <= '3.11'", # for Unpack[TypedDict]
"mypy>=1.14.1",
"ruff>=0.9.2"
]

[tool.maturin]
features = ["pyo3/extension-module"]

[tool.ruff]
line-length = 120
exclude = ["tests"]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]

[tool.mypy]
python_version = "3.8"

0 comments on commit 16a29ee

Please sign in to comment.