-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
114 lines (96 loc) · 2.37 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "crifx"
version = "0.1.5"
description = "icpc-style Contest pReparation Insights tool For anyone (X)."
requires-python = ">=3.11"
license = {file = "LICENSE"}
readme = "README.md"
keywords = ["icpc", "contest", "competitive programming", "problemtools"]
dependencies = [ "pylatex>=1.4.2", "pygit2>=1.14.1" ]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
[project.scripts]
crifx = "crifx.cli:main"
[project.urls]
Source = "https://github.com/FinnLidbetter/crifx"
[project.optional-dependencies]
dev = ["black", "ruff", "tox", "mypy", "pytest", "build"]
[tool.black]
line_length = 88
[tool.ruff]
extend-exclude = ["tests/scenarios/", "examples/"]
line-length = 88
[tool.ruff.lint]
select = [
"D",
]
ignore = ["D105", "D107", "D203", "D212", "D213"]
[tool.isort]
multi_line_output = 3
line_length = 88
include_trailing_comma = true
[tool.pytest.ini_options]
pythonpath = "."
[[tool.mypy.overrides]]
module = [
"pylatex.*",
"pygit2.*"
]
ignore_errors = true
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = format, lint, type, py{311,312}, package
requires =
tox>=4
isolated_build = True
labels =
test = py311, py312
static = format, lint, type
[testenv]
description = run unit tests
deps =
pytest>=8
commands =
pytest {posargs:tests}
[testenv:format]
description = run black formatting and dependency sorting
skip_install = true
deps =
black>=24
isort>=5
commands =
black . --check
isort . --check-only
[testenv:lint]
description = run ruff linting
skip_install = true
deps =
ruff>=0.4
commands = ruff check .
[testenv:type]
description = run type checks
deps =
pytest>=8
mypy>=1.12
commands =
mypy {posargs:crifx tests}
[testenv:package]
description = package
deps =
build
commands =
python {posargs:-m build}
"""