-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
158 lines (139 loc) · 4.26 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "versioningit"]
[project]
name = "tuitorial"
description = "A tutorial presentation tool using Textual"
requires-python = ">=3.10"
dynamic = ["version"]
maintainers = [{ name = "Bas Nijholt", email = "[email protected]" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Education",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Software Development",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"pyyaml>=6.0.2",
"rich",
"textual",
]
[dependency-groups]
dev = [
"pytest-cov>=6.0.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.0",
"pytest-timeout>=2.3.1",
"ipython>=8.31.0",
"ipykernel>=6.29.5",
]
[project.urls]
homepage = "https://tuitorial.readthedocs.io/"
documentation = "https://tuitorial.readthedocs.io/"
repository = "https://github.com/basnijholt/tuitorial"
[project.readme]
content-type = "text/markdown"
file = "README.md"
[project.scripts]
tuitorial = "tuitorial:parse_yaml.cli"
[tool.hatch.version]
source = "versioningit"
[tool.hatch.build.targets.wheel]
packages = ["tuitorial"]
[tool.hatch.build.hooks.versioningit-onbuild]
build-file = "tuitorial/_version.py"
source-file = "tuitorial/_version.py"
[tool.versioningit]
default-version = "0.0.0"
[tool.versioningit.vcs]
method = "git"
match = ["v*"]
default-tag = "0.0.0"
[tool.versioningit.format]
dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
distance = "{version}.dev{distance}+{branch}.{vcs}{rev}"
distance-dirty = "{version}.dev{distance}+{branch}.{vcs}{rev}.dirty"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "module"
addopts = """
-vvv
--cov=tuitorial
--cov-report term
--cov-report html
--cov-report xml
--cov-fail-under=35
--asyncio-mode=strict
--timeout 60
"""
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING",
"if __name__ == .__main__.:",
]
[tool.coverage.run]
omit = []
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T20", # flake8-print
"S101", # Use of assert detected
"PD901", # df is a bad variable name. Be kinder to your future self.
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"D402", # First line should not be the function's signature
"PLW0603", # Using the global statement to update `X` is discouraged
"D401", # First line of docstring should be in imperative mood
"SLF001", # Private member accessed
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
"PLR0913", # Too many arguments to function call (N > 5)
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...`
"TD003", # Missing issue link on the line following this TODO
"FIX002", # Line contains TODO"
"E501", # Line too long
"D107", # Missing docstring in `__init__`
"B905", # `zip()` without an explicit `strict=` parameter
"E741", # Do not use variables named `l`, `O`, or `I`
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SLF001", "ANN", "D", "PLR2004", "ARG001"]
"tests/test_examples.py" = ["E501"]
".github/*" = ["INP001"]
"example.ipynb" = [
"D101",
"D103",
"DTZ005",
"PLR2004",
"ARG001",
"ANN001",
"ANN201",
"NPY002",
"RET504",
]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.mypy]
python_version = "3.10"