-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (94 loc) · 2.03 KB
/
pyproject.toml
File metadata and controls
109 lines (94 loc) · 2.03 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
[project]
name = "apmodel"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "AmaseCocoa", email = "cocoa@amase.cc" }
]
requires-python = ">=3.10"
dependencies = [
"cryptography>=46.0.5",
"multiformats>=0.3.1.post4",
"niquests[http3]>=3.18.2",
"pydantic>=2.12.5",
"typing-extensions>=4.15.0",
"lxml>=6.0.2",
]
[project.optional-dependencies]
speed = [
"google-re2>=1.1.20251105",
]
[dependency-groups]
dev = [
"hatch>=1.16.5",
"jinja2>=3.1.6",
"lxml-stubs>=0.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.1.0",
"pyyaml>=6.0.3",
"ruff>=0.15.9",
"tox>=4.50.3",
"tox-uv>=1.33.4",
]
[build-system]
requires = ["hatchling", "jinja2", "pyyaml", "niquests[http3]", "ruff"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"src/apmodel"
]
[tool.hatch.build.targets.wheel.hooks.custom]
path = "scripts/compile.py"
[tool.ruff]
line-length = 200
include = ["src/**/*.py", "tests/**/*.py"]
exclude = [
".git",
".venv",
"build",
"dist",
]
[tool.ruff.lint.pycodestyle]
max-line-length = 140
[tool.ruff.lint]
select = [
"ANN", "B", "E", "F", "S", "I", "UP", "SIM", "ISC", "TID",
"BLE", "FBT", "T20", "PYI",
"TCH",
"FA",
"PGH004",
"RUF100"
]
ignore = ["TC001", "E501"]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
ignore-fully-untyped = false
suppress-dummy-args = true
suppress-none-returning = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101",
"ANN201",
]
[tool.pytest.ini_options]
addopts = "-m 'not full'"
markers = [
"full: marks tests as slow/full-test (deselect with '-m \"not full\"')"
]
[tool.tox]
requires = ["tox-uv"]
env_list = ["py{310,311,312,313,314}"]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
commands = [
[
"pytest",
"--cov=src/apmodel",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term"
]
]