Initial commit

This commit is contained in:
Corentin 2025-09-03 14:12:58 +09:00
commit 1167747fae
3 changed files with 318 additions and 0 deletions

61
pyproject.toml Normal file
View file

@ -0,0 +1,61 @@
[project]
name = "map"
version = "0.0.1"
requires-python = ">=3.10"
[project.optional-dependencies]
test = ["pytest"]
[tool.ruff]
cache-dir = "/tmp/ruff"
exclude = [
".git",
".ruff_cache",
".venv"
]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.isort]
combine_as_imports = true
force_sort_within_sections = true
lexicographical = true
lines_after_imports = 2
multi_line_output = 4
no_sections = false
order_by_type = true
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider -s -vv"
testpaths = ["tests"]
pythonpath = ["."]
[tool.ruff.lint]
preview = true
select = ["A", "ARG", "B", "C", "E", "F", "FURB", "G", "I","ICN", "ISC", "PERF", "PIE", "PL", "PLE", "PTH",
"Q", "RET", "RSE", "RUF", "SLF", "SIM", "T20", "TCH", "UP", "W"]
ignore = ["E275", "FURB140", "I001", "PERF203", "RET502", "RET503", "SIM105"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SLF001"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.pylint]
max-args=16
max-branches=24
max-locals=16
max-nested-blocks=8
max-public-methods=16
max-returns=8
max-statements=96
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.coverage.run]
command_line = "-m pytest"
omit = ["tests/*"]