-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (97 loc) · 2.22 KB
/
pyproject.toml
File metadata and controls
113 lines (97 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "tsp"
description = "TSP Route Optimization"
readme = "README.md"
requires-python = ">=3.14"
dynamic = ["version"]
authors = [
{ name = "Samuel Pedro" },
]
dependencies = [
"PyYAML>=6.0",
"prerequisites>=1.0.0",
]
[project.optional-dependencies]
dev = [
"mypy>=1.10.0",
"pre-commit>=3.7.0",
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-datadir>=1.5.0",
"ruff>=0.6.0",
"types-PyYAML>=6.0.12.20250915",
"twine>=5.1.0",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
tag-pattern = "(?P<version>\\d+\\.\\d+\\.\\d+)"
fallback-version = "0.0.0"
[tool.hatch.build.targets.wheel]
packages = ["tsp"]
[tool.hatch.build.targets.wheel.force-include]
"tsp/config.yml" = "tsp/config.yml"
[tool.ruff]
lint.select = ["A", "B", "C", "E", "F", "I", "N", "W"]
lint.ignore = ["D104", "D105", "D107", "D203", "D205", "D212", "D401", "F811"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
lint.fixable = ["A", "B", "C", "E", "F", "I"]
lint.unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.14.
target-version = "py314"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.isort]
case-sensitive = true
force-wrap-aliases = true
combine-as-imports = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.coverage.report]
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
]
[tool.mypy]
python_version = "3.14"
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_defs = true