forked from constverum/ProxyBroker
-
-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (81 loc) · 2.59 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (81 loc) · 2.59 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
[tool.poetry]
name = "proxybroker2"
version = "2.0.0b3"
description = "The New (auto rotate) Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS."
authors = ["BlueT - Matthew Lien - 練喆明 <bluet@bluet.org>", "Denis Constverum <constverum@gmail.com>"]
repository = "https://github.com/bluet/proxybroker2"
homepage = "https://proxybroker2.readthedocs.io/"
documentation = "https://proxybroker2.readthedocs.io/"
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "proxybroker"}]
include = ["proxybroker/data/*.mmdb"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Internet :: Proxy Servers',
'License :: OSI Approved :: Apache Software License',
]
[tool.poetry.dependencies]
python = "^3.10"
aiohttp = "^3.12.0"
aiodns = "^3.4.0"
attrs = ">=25.3.0"
maxminddb = "^2.7.0"
cachetools = "^5.5.2"
click = "^8.2.1"
pyyaml = "^6.0.2"
[tool.poetry.dev-dependencies]
pytest = "^8.3.5"
pytest-asyncio = "^0.26.0"
pytest-runner = "^6.0.1"
alabaster = "^1.0.0"
pytest-mock = "^3.14.0"
pytest-cov = "^6.1.1"
[build-system]
requires = ["poetry-core>=2.1.3"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
proxybroker = "proxybroker.cli:cli"
[tool.black]
py36 = true
line-length = 88
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.venv # virtualenv
| build
| dist
)
)
'''
[tool.ruff]
exclude = ["CRITICAL_FIXES.py"]
[tool.ruff.lint]
# Default selection is E4/E7/E9/F (pycodestyle errors + pyflakes). Add
# PLW1514 to enforce encoding= on text-mode open() calls, preventing the
# locale-encoding data-corruption class of bug caught reactively in PR #210.
# PLW1514 is a preview rule, so preview must be enabled, but
# explicit-preview-rules restricts preview-rule selection to only the rules
# explicitly listed in extend-select.
select = ["E4", "E7", "E9", "F", "PLW1514"]
preview = true
explicit-preview-rules = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"