-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 1.9 KB
/
pyproject.toml
File metadata and controls
95 lines (85 loc) · 1.9 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
[project]
name = "anyrouter-check-in"
version = "0.1.0"
description = "Anyrouter or newapi system check in"
requires-python = ">=3.11"
dependencies = [
"httpx[http2]>=0.24.0",
"playwright>=1.40.0",
"python-dotenv>=1.0.0"
]
[dependency-groups]
dev = [
"pytest>=7.4.0",
"pytest-mock>=3.11.1",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"python-dotenv>=1.0.0",
"ruff>=0.1.0",
"pre-commit>=3.0.0",
"mypy>=1.0.0",
"bandit[toml]>=1.7.0",
"types-requests>=2.31.0"
]
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = ["ASYNC", "E", "F", "FAST", "I", "PLE"]
ignore = ["ASYNC109", "ASYNC230", "E101", "E402", "E501", "F841", "E731"]
unfixable = ["E101", "E402", "E501", "F841", "E731"]
[tool.ruff.format]
quote-style = "single"
indent-style = "tab"
docstring-code-format = true
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
ignore_missing_imports = true
[tool.bandit]
exclude_dirs = ["tests", ".venv", "venv"]
skips = ["B101", "B601"]
[tool.bandit.assert_used]
skips = ["*_test.py", "test_*.py"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--cov=.",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
"--cov-branch",
"-v"
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["."]
omit = [
"tests/*",
".venv/*",
"venv/*",
"*/site-packages/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod"
]