Ruff in pre-commit

This commit is contained in:
2026-04-05 21:45:24 +02:00
parent 83515c4682
commit b485914e01
82 changed files with 4317 additions and 34 deletions

View File

@@ -7,17 +7,16 @@ authors = [
]
requires-python = ">=3.14"
dependencies = [
"pytablereader>=0.30.0,<0.35.0",
"pytablewriter>=0.64.1,<0.65.0",
"sympy>=1.12,<2.0",
]
[dependency-groups]
dev = [
"pre-commit>=2.16.0,<3.0.0",
"flake8>=4.0.1,<5.0.0",
"mypy>=0.920,<1.0.0",
"isort>=5.10.1,<6.0.0",
"black>=21.12b0,<22.0",
"mypy>=1.11.0,<2.0.0",
"pre-commit>=4.0.0,<5.0.0",
"ruff>=0.6.0,<1.0.0",
]
[build-system]
@@ -30,3 +29,30 @@ package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["project_euler_python*"]
[tool.ruff]
line-length = 88
target-version = "py314"
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"UP",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.14"
[[tool.mypy.overrides]]
module = ["sympy", "sympy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pytablereader", "pytablereader.*"]
ignore_missing_imports = true