-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (117 loc) · 3.61 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (117 loc) · 3.61 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ['setuptools >= 77.0']
build-backend = 'setuptools.build_meta'
[project]
name = 'python-socks'
license = 'Apache-2.0'
description = 'Proxy (SOCKS4, SOCKS5, HTTP CONNECT) client for Python'
readme = 'README.md'
authors = [{ name = 'Roman Snegirev', email = 'snegiryev@gmail.com' }]
keywords = [
'socks',
'socks5',
'socks4',
'http',
'proxy',
'asyncio',
'trio',
'anyio',
]
requires-python = ">=3.9.0"
dynamic = ['version']
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"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 :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Topic :: Internet :: WWW/HTTP",
"Intended Audience :: Developers",
"Framework :: AsyncIO",
"Framework :: Trio",
]
[project.optional-dependencies]
asyncio = ['async-timeout>=5.0.1; python_version < "3.11"']
trio = ['trio>=0.30.0']
anyio = ['anyio>=4.12.1,<5.0.0']
[dependency-groups]
dev = [
"anyio>=4.12.1,<5.0.0",
"async-timeout>=5.0.1 ; python_full_version < '3.11'",
"trio>=0.30.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-trio>=0.8.0",
"pytest-cov>=7.1.0",
"tiny-proxy>=0.3.0",
"trustme>=1.2.1",
"yarl>=1.22.0",
"starlette>=0.49.3",
"uvicorn>=0.39.0",
"ruff>=0.16.1",
"mypy>=1.19.1",
]
[project.urls]
homepage = 'https://github.com/romis2012/python-socks'
repository = 'https://github.com/romis2012/python-socks'
[tool.setuptools.dynamic]
version = { attr = 'python_socks.__version__' }
[tool.setuptools.packages.find]
include = ['python_socks*']
[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
[tool.mypy]
allow_redefinition = true
disable_error_code = ["import-untyped", "no-redef"]
[tool.ruff]
line-length = 89
indent-width = 4
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D",
"TD",
"CPY001", # missing-copyright-notice (CPY001)
"ANN401", # any-type (ANN401)
"FA100", # future-rewritable-type-annotation (FA100)
"S101", # assert (S101)
"COM812", # missing-trailing-comma (COM812),
"TRY003", # raise-vanilla-args (TRY003)
"TRY300", # try-consider-else (TRY300)
"EM101", # raw-string-in-exception (EM101)
"EM102", # f-string-in-exception (EM102)
"RET504", # unnecessary-assign (RET504)
"ERA001", # commented-out-code (ERA001)
"TC001", # typing-only-first-party-import (TC001)
"TC002", # typing-only-third-party-import (TC002)
"TC003", # typing-only-standard-library-import (TC003)
"TID252", # relative-imports (TID252)
"ASYNC109", # async-function-with-timeout (ASYNC109)
]
fixable = ["ALL"]
unfixable = [
"RET505", # superfluous-else-return (RET505)
]
[tool.ruff.lint.pylint]
max-args = 8
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"PLR2004", # magic-value-comparison (PLR2004)
"PT011", # pytest-raises-too-broad (PT011)
"C416", # unnecessary-comprehension (C416)
"T201", # print (T201)
"PT007", # pytest-parametrize-values-wrong-type (PT007)
"FBT001", # boolean-type-hint-positional-argument (FBT001)
"E402", # module-import-not-at-top-of-file (E402)
"PLC0415", # import-outside-top-level (PLC0415)
]