forked from plotly/choreographer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (95 loc) · 3.64 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
[build-system]
requires = ["setuptools>=65.0.0", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools-git-versioning]
enabled = true
[project]
name = "choreographer"
description = "Devtools Protocol implementation for chrome."
readme = "README.md"
requires-python = ">=3.9"
dynamic = ["version"]
authors = [
{name = "Andrew Pikul", email="[email protected]"},
{name = "Neyberson Atencio", email="[email protected]"}
]
maintainers = [
{name = "Andrew Pikul", email = "[email protected]"},
]
dependencies = [
"logistro>=1.0.2",
"simplejson",
]
[project.urls]
Homepage = "https://github.com/plotly/choreographer"
Repository = "https://github.com/geopozo/logistro"
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"pytest-xdist",
"async-timeout",
"poethepoet>=0.31.1",
"numpy"
]
# uv doens't allow dependency groups to have separate python requirements
# it resolves everything all at once
# this group we need to require higher python
# and only resolve if explicitly asked for
#docs = [
# "mkquixote @ git+ssh://[email protected]/geopozo/mkquixote",
# "mkdocs>=1.6.1",
# "mkdocs-material>=9.5.49",
#]
[project.scripts]
choreo_diagnose = "choreographer._cli_utils_no_qa:diagnose"
choreo_get_browser = "choreographer._cli_utils:get_browser_cli"
[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)
"T201", # no print, remove after logistro TODO
"PT003", # scope="function" implied but I like readability
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D", # ignore docstring errors
"S101", # allow assert
"INP001", # no need for __init__ in test directories
]
# Format breaks this anyway
# [tool.ruff.lint]
# ignore = ["E701"]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
log_cli = true
[tool.poe.tasks]
_test_proc = "pytest -W error -n auto -v -rfE --capture=fd tests/test_process.py"
_test_fn = "pytest -W error -n auto -v -rfE --ignore=tests/test_process.py"
_debug-test_proc = "pytest -W error -vvx -rA --capture=tee-sys tests/test_process.py"
_debug-test_fn = "pytest -W error -vvvx -rA --capture=tee-sys --ignore=tests/test_process.py"
# the capture on these is weird, the mechanics are weird, i forget exactly whats its doing
[tool.poe.tasks.test]
sequence = ["_test_proc", "_test_fn"]
help = "Run all tests quickly"
[tool.poe.tasks.debug-test]
sequence = ["_debug-test_proc", "_debug-test_fn"]
help = "Run test by test, slowly, quitting after first error"
[tool.poe.tasks.filter-test]
cmd = "pytest -W error -vvvx -rA --capture=tee-sys"
help = "Run any/all tests one by one with basic settings: can include filename and -k filters"