-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (135 loc) · 4.04 KB
/
pyproject.toml
File metadata and controls
145 lines (135 loc) · 4.04 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[project]
name = "requestium"
version = "0.5.1"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "Joaquin Alori", email = "joaquin@tryolabs.com" }
]
maintainers = [
{ name = "Judson Neer", email = "jkudson.neer@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
]
dependencies = [
"parsel>=1.7",
"requests>=2.27",
"selenium>=4.32",
"tldextract>=5.3",
]
[project.urls]
source = "https://github.com/tryolabs/requestium"
download = "https://pypi.org/project/requestium/#files"
issues = "https://github.com/tryolabs/requestium/issues"
[project.optional-dependencies]
dev = [
"bandit[sarif]==1.9.2",
"mypy==1.20.0",
"pre-commit~=4.5.0",
"pytest-cov>=7.0,<7.2",
"pytest-xdist~=3.8.0",
"pytest~=9.0.0",
"ruff==0.14.11",
"ssort==0.16.0",
"types-requests==2.33.0.20260327",
]
[tool]
[tool.ruff]
line-length = 160
include = [
"requestium/**/*.py",
"tests/**/*.py",
]
[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins (A)
"ANN", # flake8-annotations (ANN)
"ARG", # flake8-unused-arguments (ARG)
"B", # flake8-bugbear (B)
"BLE", # flake8-blind-except (BLE)
"C4", # flake8-comprehensions (C4)
"C90", # mccabe (C90)
"D", # pydocstyle (D)
"DTZ", # flake8-datetimez (DTZ)
"E", # pycodestyle-error (E)
"EM", # flake8-errmsg (EM)
"EXE", # flake8-executable (EXE)
"F", # Pyflakes (F)
"FA", # flake8-future-annotations (FA)
"FBT", # flake8-boolean-trap (FBT)
"FIX", # flake8-fixme (FIX)
"G", # flake8-logging-format (G)
"I", # isort (I)
"ICN", # flake8-import-conventions (ICN)
"INP", # flake8-no-pep420 (INP)
"INT", # flake8-gettext (INT)
"ISC", # flake8-implicit-str-concat (ISC)
"LOG", # flake8-logging (LOG)
"N", # pep8-naming (N)
"PIE", # flake8-pie (PIE)
"PL", # Pylint (PL)
"PT", # flake8-pytest-style (PT)
"PTH", # flake8-use-pathlib (PTH)
"Q", # flake8-quotes (Q)
"RET", # flake8-return (RET)
"RSE", # flake8-raise (RSE)
"RUF", # Ruff-specific rules (RUF)
"SIM", # flake8-simplify (SIM)
"SLF", # flake8-self (SLF)
"T10", # flake8-debugger (T10)
"T20", # flake8-print (T20)
"TC", # flake8-type-checking (TC)
"TD", # flake8-todos (TD)
"TID", # flake8-tidy-imports (TID)
"UP", # pyupgrade (UP)
"W", # pycodestyle-warning (W)
"YTT", # flake8-2020 (YTT)
]
ignore = [
"ANN002", # missing-type-args (ANN002)
"ANN003", # missing-type-kwargs (ANN003)
"D100", # undocumented-public-module (D100)
"D102", # undocumented-public-method (D102)
"D103", # undocumented-public-function (D103)
"D104", # undocumented-public-package (D104)
"D107", # undocumented-public-init (D107)
"D203", # incorrect-blank-line-before-class (D203)
"D212", # multi-line-summary-first-line (D212)
"FIX002", # line-contains-todo (FIX002)
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs}/*" = [
"SLF001", # private-member-access (SLF001)
"PLR2004", # magic-value-comparison (PLR2004)
]
[tool.pytest]
addopts = ["-n", "auto", "--cov=requestium", "--no-cov-on-fail"]
testpaths = [
"tests",
]
[tool.coverage]
[tool.coverage.run]
branch = true
relative_files = true
[tool.coverage.report]
exclude_also = [
"logger\\.",
]