-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
199 lines (182 loc) · 4.75 KB
/
pyproject.toml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# SPDX-License-Identifier: MIT
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=22.8.0"]
build-backend = "hatchling.build"
[project]
name = "py-golf-games"
version = "0.0.0"
description = "Simulation of golf games"
readme = "README.md"
requires-python = ">=3.10,<4"
license = {file = "LICENSE"}
authors = [{name = "Ryan", email = "[email protected]"}]
maintainers = [{name = "Ryan", email = "[email protected]"}]
keywords = ["golf"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
]
dependencies = [
"structlog>=24.4.0",
]
[project.urls]
Repository = "https://github.com/ryankanno/py-golf-games"
Issues = "https://github.com/ryankanno/py-golf-games/issues"
[project.optional-dependencies]
docs = [
"furo>=2024.8.6",
"myst-parser[linkify]>=4.0.0",
"sphinx>=8.1.3",
"sphinx-autobuild>=2024.10.3",
]
[tool.uv]
dev-dependencies = [
"black>=24.10.0",
"dunamai>=1.22.0",
"hypothesis>=6.115.3",
"ipython>=8.28.0",
"isort>=5.13.2",
"konch>=4.5.0",
"mutmut>=3.1.0",
"mypy>=1.13.0",
"pdbpp>=0.10.3",
"pre-commit>=4.0.1",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.15.0",
"pytest-xdist>=3.6.1",
"ruff>=0.7.0",
"tox>=4.23.2",
]
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "normal"
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = false
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
[tool.black]
line-length = 79
skip-string-normalization = true
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
(
/(
\.direnv
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| venv
| \.svn
| _build
| buck-out
| build
| dist
| __pypackages__
| \{\{cookiecutter\.package_name\}\}\/tests
)/
)
'''
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q -n auto"
[tool.coverage.run]
parallel = true
branch = true
source = ["py_golf_games"]
omit = [
"*/python?.?/*",
"*/tests/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"import",
]
show_missing = true
skip_covered = false
[tool.isort]
force_grid_wrap = 0
force_single_line = true
include_trailing_comma = true
lines_after_imports = 2
multi_line_output = 3
use_parentheses = true
known_third_party = []
default_section = "THIRDPARTY"
known_first_party = "py_golf_games"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
[tool.vulture]
make_whitelist = true
min_confidence = 80
paths = ["py_golf_games", "tests"]
[tool.ruff]
line-length = 79
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
preview = true
select = [
"A", # python builtins being used as variables or parameters
"ANN", # annotations
"ARG", # unused function arguments
"B", # common design problems (flake8-bugbear)
"BLE", # blind exception catching
"C4", # proper comprehensions
"C9", # mccabe complexity
"D417", # missing args in docstrings
"DTZ", # unsafe naive datetime use (flake8-datetimez)
"E", # code style conventions (pycodestyle)
"EM", # raw literals inside exception (flake8-errmsg)
"F", # python source code for errors (pyflakes)
"FIX", # temporary developer notes (flake8-fixme)
"FURB", # code improvements (refurb)
"G", # logging string formatting (flake8-logging-format)
"LOG", # logging module usage (flake8-logging)
"PERF", # performance anti-patterns (perflint)
"PGH", # pygrep hooks
"PIE", # misc (flake8-pie)
"PL", # code errors and smells (pylint)
"PT", # common pytest issues
"PTH", # pathlib usage
"RET", # return statements (flake8-return)
"RSE", # exception raise statements (flake8-raise)
"S", # security testing (flake8-bandit)
"SIM", # code simplicity (flake8-simplify)
"T20", # for any print statements
"TRY", # exception handling anti-patterns (tryceratops)
"UP", # outdated syntax (pyupgrade)
"W", # code style conventions (pycodestyle)
]
ignore = [
"ANN101",
"ANN102",
]
[tool.ruff.lint.per-file-ignores]
"tests/test_*.py" = ["S101"]
"py_golf_games/simulation/generator.py" = ["S311"]
"py_golf_games/simulation/simulator.py" = ["T201"]