-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (75 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (75 loc) · 2.04 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
[project]
name = "bapctools"
dynamic = ["version"]
authors = [
{ name="Ragnar Groot Koerkamp", email="ragnar.grootkoerkamp@gmail.com" },
]
description = "Tools for developing ICPC-style programming contest problems."
readme = "readme.md"
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "GPL-3.0"
license-files = ["LICENSE"]
dependencies = [
"argcomplete~=3.6.3; platform_system != 'Windows'",
"checktestdata>=2026.3.15",
"colorama~=0.4.6",
"matplotlib~=3.10.7",
"python-dateutil~=2.9.0",
"questionary~=2.1.1",
"requests~=2.32.5",
"ruamel.yaml~=0.19.1",
"vermin==1.8.0", # We define our own typing stubs, better use the exact version just to be sure it doesn't break.
]
[project.scripts]
bt = "bapctools.cli:main"
[project.urls]
Homepage = "https://github.com/ragnargrootkoerkamp/bapctools"
Issues = "https://github.com/ragnargrootkoerkamp/bapctools/issues"
[dependency-groups]
dev = [
"pre-commit~=4.5.1",
"pytest~=9.0.1",
{include-group = "types"},
]
types = [
"mypy~=1.19",
"types-colorama~=0.4.15",
"types-Pygments~=2.18.0",
"types-python-dateutil~=2.9.0",
"types-requests~=2.32.0",
]
[build-system]
requires = ["hatchling", "versioningit"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "versioningit"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = [
"I", # Enable import sorting rules
"UP", # Enable upgrade rules
]
ignore = [
"UP036", # Allow Python version checks
"UP045", # Allow Optional
]
[tool.ruff.lint.isort]
# Case-insensitive ordering in `from ? import X, y, Z`
order-by-type = false
[tool.pyright]
include = ["bapctools"]
exclude = ["bapctools/resources"]
[tool.mypy]
python_version = "3.10"
packages = "bapctools"
exclude = ["^bapctools/resources/"]
check_untyped_defs = true
enable_error_code="truthy-bool,truthy-iterable"
strict = true
mypy_path = ["third_party/stubs/"]