-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
177 lines (154 loc) · 3.73 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "manytask-checker"
authors = [
{name = "Konstantin Chernyshev", email = "[email protected]"},
]
description = "Students' solution checker"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Typing :: Typed",
"Intended Audience :: Education",
"Topic :: Education",
"Topic :: Education :: Testing",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"Jinja2 >=3.0.0,<4.0.0",
"PyYAML >=5.0.0,<7.0.0",
"click >=8.0,<9.0",
"python-gitlab >=3.0.0,<5.0.0",
"pydantic >=2.0.0,<3.0.0",
"rich >=13.0.0,<14.0.0",
"requests >=2.20.0,<3.0.0",
"pytz >=2022.0,<2023.4; python_version < '3.9'",
"urllib3 >=2.0.0,<3.0.0",
"GitPython >=3.0.0,<4.0.0",
]
dynamic = ["version"]
[project.urls]
Source = "https://github.com/yandexdataschool/checker"
Documentation = "https://manytask.github.io/checker/"
[project.optional-dependencies]
test = [
"pytest >=6.0.0,<9.0.0",
"pytest-cov >=4.0.0,<6.0.0",
"pytest-mock >=3.0.0,<4.0.0",
"requests-mock >=1.0.0,<2.0.0",
"black ==23.12.1",
"mypy >=1.0.0",
"flake8 >=4.0.0,<8.0.0",
"isort >=5.0.0,<7.0.0",
"ruff ==0.4.4",
"types-requests >=2.20.0,<3.0.0",
"types-PyYAML >=6.0.0,<7.0.0",
"wheel >=0.40.0",
"pre-commit >=3.0.0,<4.0.0",
]
docs = [
"mike >=1.1.0,<3.0.0",
"mkdocs >=1.4.0,<2.0.0",
"mkdocs-autorefs ==1.0.1",
"mkdocs-click >=0.8.0",
"mkdocs-include-markdown-plugin >=4.0.0,<7.0.0",
"mkdocs-material >=9.0.0,<10.0.0",
"mkdocs-material-extensions ==1.3.1",
"mkdocstrings[python] ==0.25.1",
"mkdocs-mermaid2-plugin ==1.1.1",
]
[tool.setuptools.dynamic]
version = {file = "VERSION"}
[project.scripts]
checker = "checker.__main__:cli"
[tool.setuptools.packages.find]
exclude = ["tests*"]
[tool.mypy]
no_incremental = true
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_any_generics = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
allow_untyped_decorators = true
exclude = [
"tests/",
".tmp/",
".venv/"
]
[tool.pyright]
include = ["checker"]
exclude = [
"**/node_modules",
"**/__pycache__",
".venv",
"venv",
".tmp",
"tests"
]
[tool.pytest.ini_options]
minversion = "6.0"
python_files = "test_*.py"
addopts = "--cov=checker/ --cov-report=term-missing --cov-report=xml tests/"
testpaths = [
"tests",
".tmp"
]
[tool.ruff]
target-version = "py311"
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E", "F"]
ignore = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"tests",
".tmp",
"__init__.py",
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
lines_after_imports = 2
combine_as_imports = true
default_section = "THIRDPARTY"
known_first_party = "checker,tests"
[tool.black]
line-length = 120
target-version = ['py312']