-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (70 loc) · 2.06 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "cs3560-grading-lib"
requires-python = ">=3.10"
description = "A common library for the grading scripts of CS3560."
readme = "README.md"
license = { file = "LICENSE" }
dynamic = ["version"]
# For the lis of classifiers, please visit https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python :: 3.10",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Topic :: Education :: Testing",
]
dependencies = [
"click",
"tomli",
"GitPython",
"mistletoe",
"typing_extensions >=4.12, <5",
'importlib-metadata; python_version>="3.10"',
]
[project.optional-dependencies]
dev = ["build", "twine", "pytest", "pytest-cov", "mypy", "ruff", "tox"]
[project.urls]
Documentation = "https://grading-lib.readthedocs.io/en/latest/"
"Source Code" = "https://github.com/OU-CS3560/cs3560-grading-lib"
"Issue Tracker" = "https://github.com/OU-CS3560/cs3560-grading-lib/issues"
Changelog = "https://github.com/OU-CS3560/cs3560-grading-lib/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
include = ["grading_lib*"]
[tool.setuptools.dynamic]
version = { file = "grading_lib/VERSION" }
[tool.ruff]
src = ["grading_lib"]
fix = true
show-fixes = true
output-format = "full"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"RUF", # ruff-specific rules
"UP", # pyupgrade
"W", # pycodestyle warning
"T10", # flake8-debugger e.g. breakpoint() is presence
]
ignore = [
"E501" # Line too long
]
ignore-init-module-imports = true
[tool.ruff.lint.isort]
# So the imports in tests/ still sort the same way.
known-first-party = ["grading_lib"]
[tool.mypy]
files = ["grading_lib", "tests"]
show_error_codes = true
pretty = true
strict = true
[tool.pytest.ini_options]
markers = [
"interest: marks tests as interested (deselect with '-m \"not interest\"')",
]