-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (80 loc) · 2.19 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
[project]
name = "vmess-aead"
version = "0.1.0"
description = "VMessAEAD packet parser for python."
authors = [{ name = "Mix", email = "32300164+mnixry@users.noreply.github.com" }]
dependencies = [
"cryptography>=42.0.0", # Cryptography 42.0.0 is the first version that supports SM4-GCM
]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
[project.optional-dependencies]
cli = [
"rich>=13.7.0", # Rich is used to support colored logging
"typer[all]>=0.10.0", # Typer is used to support command line interface
"multidict>=6.0.5", # Multidict is used to support HTTP headers parsing
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.3.4",
"pytest>=8.1.1",
"pytest-cov>=5.0.0",
"pytest-pretty>=1.2.0",
]
[tool.pdm.scripts]
test = "pytest --cov --cov-report=term-missing ."
format = "ruff format"
lint = "ruff check"
[tool.coverage.run]
branch = true
omit = [
"**/cli/*.py", # Skip the CLI coverage report
]
[tool.coverage.report]
exclude_also = [
# Skip abstract methods
"raise AssertionError",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
# Pytest
"if __name__ == .__main__.:",
"pytest\\.skip",
"pytest\\.mark\\.skip",
]
[tool.pyright]
typeCheckingMode = "standard"
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"A", # flake8-builtins
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"G", # flake8-logging-format
"LOG", # flake8-logging
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RSE", # flake8-raise
"SIM", # flake8-simplify
"SLF", # flake8-self
"T10", # flake8-debugger
"T20", # flake8-print
"F", # Pyflakes
"TRY", # tryceratops
"I", # isort
"UP", # pyupgrade
"C90", # complexity
"N", # naming
"RUF", # Ruff-specific rules
]
lint.ignore = [
"B008", # Do not perform calls in argument defaults
"TRY003", # Avoid specifying long messages outside the exception class
]
target-version = "py310"