-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (137 loc) · 3.84 KB
/
pyproject.toml
File metadata and controls
155 lines (137 loc) · 3.84 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
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
# ==============================================================================
# Build System Configuration (PEP 517/518)
# ==============================================================================
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
# ==============================================================================
# Project Metadata (PEP 621)
# ==============================================================================
[project]
name = "python-code-tester"
version = "0.0.1"
description = "A flexible framework for dynamic testing of Python code using declarative JSON scenarios."
keywords = ["dynamic testing", "testing", "education", "arcade", "flask", "api"]
authors = [{ name = "Qu1nel", email = "covach.qn@gmail.com" }]
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Testing",
"Topic :: Education",
]
dependencies = [
"requests",
"Pillow",
"scikit-image",
"arcade",
"loguru>=0.7.0",
"rich>=13.0.0",
"pydantic>=2.0.0",
"typer[all]>=0.9.0",
]
[project.urls]
"Homepage" = "https://github.com/Qu1nel/PythonCodeTester"
"Documentation" = "https://pythoncodetester.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/Qu1nel/PythonCodeTester/issues"
[project.scripts]
code-tester = "code_tester.cli:run_from_cli"
[project.optional-dependencies]
dev = [
"ruff>=0.4.0",
"build",
"twine",
"coverage[toml]>=7.5.0",
]
docs = [
"sphinx>=7.0.0",
"furo",
"myst-parser",
"sphinx-design",
]
# ==============================================================================
# Tool Configuration
# ==============================================================================
[tool.ruff]
line-length = 120
exclude = [
"venv",
".venv",
"build",
"dist",
"src/python_code_tester.egg-info",
"tests/fixtures",
"tests/env_fixtures",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
]
"src/code_tester/components/__init__.py" = ["D104"]
"src/code_tester/actions_library/__init__.py" = ["D104"]
"src/code_tester/assertions_library/__init__.py" = ["D104"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["code_tester", "tests"]
[tool.ruff.format]
quote-style = "double"
[tool.coverage.run]
omit = [
"src/code_tester/__main__.py",
"src/code_tester/cli.py",
"tests/*",
"*/__init__.py",
]
[tool.coverage.report]
fail_under = 85
show_missing = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings",
"--basetemp=tests/temp",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::pytest.PytestCollectionWarning",
]
[dependency-groups]
dev = [
"pytest>=8.4.1",
]