-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
150 lines (122 loc) · 3.35 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
[project]
name = "viewdom"
description = "ViewDOM"
dynamic = ["version"]
build-targets = ["wheel"]
authors = [{ name = "Paul Everitt", email = "[email protected]" }]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/pauleveritt/viewdom"
repository = "https://github.com/pauleveritt/viewdom"
documentation = "https://viewdom.readthedocs.io"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.11"
dependencies = [
"tagged~=0.0.2",
"venusian~=3.1.0",
"htm~=0.1.1",
"MarkupSafe~=2.1.3",
"hopscotch>=0.3.1"
]
[tool.hatch.urls]
Changelog = "https://github.com/pauleveritt/viewdom/releases"
[tool.hatch.version]
path = "src/viewdom/version.py"
[tool.hatch.envs.test]
dependencies = [
"pytest~=7.4.3",
"sybil~=3.0.1",
"coverage[toml]~=6.3",
"pytest-cov~=4.1.0",
"ruff~=0.1.8",
"ruff-lsp~=0.0.45",
"sphinx~=4.4.0"
]
[tool.hatch.envs.pre-commit]
dependencies = [
"ruff~=0.1.8",
"pre-commit~=3.5.0",
"pre-commit-hooks~=4.1.0",
]
[tool.hatch.envs.mypy]
dependencies = [
"mypy~=1.7",
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["viewdom"]
[tool.coverage.report]
show_missing = true
fail_under = 80
[tool.pytest.ini_options]
addopts = "-p no:doctest"
testpaths = ["tests", "examples", "docs"]
[tool.mypy]
strict = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.envs.safety]
dependencies = [
"safety~=2.3.5",
]
[tool.hatch.envs.docs-build]
dependencies = [
"sphinx~=4.4.0",
"sphinx-autobuild~=2021.3.14",
"Pygments~=2.11.2",
"pyupgrade~=2.31.0",
"furo~=2022.3.4",
"myst-parser~=0.17.0",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.12"]
[[tool.hatch.envs.pre-commit.matrix]]
python = ["3.12"]
[[tool.hatch.envs.mypy.matrix]]
python = ["3.12"]
[[tool.hatch.envs.safety.matrix]]
python = ["3.12"]
[[tool.hatch.envs.docs-build.matrix]]
python = ["3.12"]
[tool.hatch.envs.test.scripts]
run = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
lint = "ruff check src/viewdom tests docs/conf.py && ruff format --check src/viewdom tests docs/conf.py"
format = "ruff check --fix src/viewdom tests docs/conf.py && ruff format src/viewdom tests docs/conf.py"
[tool.hatch.envs.pre-commit.scripts]
run = "pre-commit run --all-files --show-diff-on-failure"
install = "pre-commit install"
[tool.hatch.envs.mypy.scripts]
run = "mypy src/viewdom tests docs/conf.py"
[tool.hatch.envs.safety.scripts]
run = "hatch -e safety.py3.12 dep show requirements | safety check --full-report --stdin"
[tool.hatch.envs.docs-build.scripts]
run = "sphinx-build docs docs/_build"
[tool.ruff]
line-length = 88
extend-select = ['B','B9','C','D','E','F','N','S','W']
flake8-quotes = {inline-quotes = 'double', multiline-quotes = 'double'}
target-version = 'py311'
ignore = ['E203','E501','N802','B009','B010']
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.extend-per-file-ignores]
"tests/*" = ["S101"]
"examples/*" = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"