-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
71 lines (61 loc) · 1.52 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sub-customizer"
dynamic = ["version"]
description = "Clash subscription customizer"
authors = [
{ name = "linux-fly" }
]
license = { text = "GPL-3.0" }
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only"
]
dependencies = [
"requests",
"pydantic",
"pydantic-settings",
"pyyaml",
]
[project.urls]
Homepage = "https://github.com/linux-fly/sub-customizer"
Repository = "https://github.com/linux-fly/sub-customizer"
[project.optional-dependencies]
api = [
"fastapi", "jinja2", "uvicorn[standard]"
]
[project.scripts]
sub-customizer = "sub_customizer.__main__:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "sub_customizer.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
pythonpath = "src"
[tool.ruff]
line-length = 88
src = ["src", "tests"]
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"W", # pycodestyle
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"B019" # Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
]