-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (95 loc) · 3.25 KB
/
pyproject.toml
File metadata and controls
112 lines (95 loc) · 3.25 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
[build-system]
requires = ["setuptools>=65.0.0", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages]
find = { namespaces = true, where = ["src"] }
[tool.setuptools-git-versioning]
enabled = true
[tool.setuptools.package-data]
[project]
name = "tetsuya"
description = """A user-local dashboard cache- JSON endpoints just for you."""
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.12"
dynamic = ["version"]
authors = [
{name = "Andrew Pikul", email="ajpikul@gmail.com"},
]
maintainers = [
{name = "Andrew Pikul", email = "ajpikul@gmail.com"},
]
dependencies = [
"fastapi>=0.118.0",
"httpx>=0.28.1",
"logistro>=1.1.0",
"orjson>=3.11.3",
"platformdirs>=4.4.0",
"pyright>=1.1.406",
"tomli-w>=1.2.0",
"typer>=0.19.2",
"uvicorn>=0.37.0",
]
[project.urls]
[project.scripts]
tetsuya = "tetsuya.service_manager:start_client"
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"pytest-xdist",
"async-timeout",
"poethepoet>=0.30.0",
"pytest-order>=1.3.0",
"typing-extensions>=4.12.2",
"hypothesis>=6.113.0",
"pyright>=1.1.405",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # no types
"EM", # allow strings in raise(), despite python being ugly about it
"TRY003", # allow long error messages inside raise()
"D203", # No blank before class docstring (D211 = require blank line)
"D212", # Commit message style docstring is D213, ignore D212
"COM812", # manual says linter rule conflicts with formatter
"ISC001", # manual says litner rule conflicts with formatter
"RET504", # Allow else if unnecessary because more readable
"RET505", # Allow else if unnecessary because more readable
"RET506", # Allow else if unnecessary because more readable
"RET507", # Allow else if unnecessary because more readable
"RET508", # Allow else if unnecessary because more readable
"RUF012", # We don't do typing, so no typing
"SIM105", # Too opionated (try-except-pass)
"PT003", # scope="function" implied but I like readability
"G004", # fstrings in my logs
"TD003", # issue link in todos
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D", # ignore docstring errors
"S101", # allow assert
"INP001", # no need for __init__ in test directories
"T201", # if we're printing in tests, there is a reason
"ERA001"
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
log_cli = false
[tool.poe.tasks]
# name = cmd
[tool.poe.tasks.test]
cmd = "pytest --log-level=1 -W error -n auto -v -rfE --capture=fd"
help = "Run all tests quickly"
[tool.poe.tasks.debug-test]
# sequence = ["some_named_command"]
cmd = "pytest --log-level=1 -W error -vvvx -rA --show-capture=no --capture=no"
help = "Run test by test, slowly, quitting after first error"
[tool.poe.tasks.filter-test]
cmd = "pytest --log-level=1 -W error -vvvx -rA --capture=no --show-capture=no"
help = "Run any/all tests one by one with basic settings: can include filename and -k filters"
[tool.pyright]
venvPath = "."
venv = ".venv"