Skip to content

Commit 1a7f37f

Browse files
authored
Running pyproject-fmt (#458)
1 parent 5151b06 commit 1a7f37f

File tree

1 file changed

+71
-81
lines changed

1 file changed

+71
-81
lines changed

pyproject.toml

Lines changed: 71 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,91 @@
11
[build-system]
2-
requires = ["setuptools"]
32
build-backend = "setuptools.build_meta"
43

4+
requires = [ "setuptools" ]
5+
56
[project]
67
name = "fake-useragent"
78
version = "2.1.0"
8-
authors = [
9-
{ name = "Melroy van den Berg", email = "melroy@melroy.org" },
10-
{ name = "Victor Kovtun", email = "hellysmile@gmail.com" },
11-
]
12-
requires-python = ">=3.9"
13-
dependencies = ["importlib-resources >= 6.0; python_version < '3.10'"]
149
description = "Up-to-date simple useragent faker with real world database"
10+
readme.content-type = "text/markdown"
11+
readme.file = "README.md"
1512
keywords = [
16-
"user",
17-
"agent",
18-
"user agent",
19-
"useragent",
20-
"fake",
21-
"fake useragent",
22-
"fake user agent",
13+
"agent",
14+
"fake",
15+
"fake user agent",
16+
"fake useragent",
17+
"user",
18+
"user agent",
19+
"useragent",
20+
]
21+
authors = [
22+
{ name = "Melroy van den Berg", email = "melroy@melroy.org" },
23+
{ name = "Victor Kovtun", email = "hellysmile@gmail.com" },
2324
]
25+
requires-python = ">=3.9"
2426
classifiers = [
25-
"Development Status :: 5 - Production/Stable",
26-
"Intended Audience :: Developers",
27-
"License :: OSI Approved :: Apache Software License",
28-
"Operating System :: POSIX",
29-
"Operating System :: MacOS :: MacOS X",
30-
"Operating System :: Microsoft :: Windows",
31-
"Programming Language :: Python",
32-
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3 :: Only",
34-
"Operating System :: OS Independent",
35-
"Topic :: Internet :: WWW/HTTP",
36-
"Topic :: Software Development",
37-
"Topic :: Software Development :: Libraries :: Python Modules",
38-
"Topic :: Utilities",
27+
"Development Status :: 5 - Production/Stable",
28+
"Intended Audience :: Developers",
29+
"License :: OSI Approved :: Apache Software License",
30+
"Operating System :: MacOS :: MacOS X",
31+
"Operating System :: Microsoft :: Windows",
32+
"Operating System :: OS Independent",
33+
"Operating System :: POSIX",
34+
"Programming Language :: Python",
35+
"Programming Language :: Python :: 3 :: Only",
36+
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
38+
"Programming Language :: Python :: 3.11",
39+
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
41+
"Topic :: Internet :: WWW/HTTP",
42+
"Topic :: Software Development",
43+
"Topic :: Software Development :: Libraries :: Python Modules",
44+
"Topic :: Utilities",
3945
]
4046

41-
[project.readme]
42-
file = "README.md"
43-
content-type = "text/markdown"
47+
dependencies = [ "importlib-resources>=6; python_version<'3.10'" ]
48+
urls.Homepage = "https://github.com/fake-useragent/fake-useragent"
4449

45-
[project.urls]
46-
Homepage = "https://github.com/fake-useragent/fake-useragent"
50+
[tool.setuptools]
51+
zip-safe = false
52+
53+
[tool.setuptools.package-data]
54+
"fake_useragent.data" = [ "*.jsonl" ]
55+
"fake_useragent" = [ "py.typed" ]
4756

4857
[tool.ruff]
4958
target-version = "py39"
5059
line-length = 142
5160

52-
[tool.ruff.lint]
53-
select = [
54-
"B",
55-
"C4",
56-
"C9",
57-
"E",
58-
"F",
59-
"I",
60-
"PL",
61-
"S",
62-
"SIM",
63-
"W",
64-
"YTT",
65-
"DOC", # Ensure docstrings are consistent with signatures.
66-
"D", # Check compliance with Python docstring conventions.
61+
lint.select = [
62+
"B",
63+
"C4",
64+
"C9",
65+
"D", # Check compliance with Python docstring conventions.
66+
"DOC", # Ensure docstrings are consistent with signatures.
67+
"E",
68+
"F",
69+
"I",
70+
"PL",
71+
"S",
72+
"SIM",
73+
"W",
74+
"YTT",
6775
]
68-
69-
ignore = [
70-
"B904",
71-
"C408",
72-
"PLW2901",
73-
"SIM105",
74-
"SIM108",
75-
"D107", # Allow no docstring in __init__, we document it in the class docstring.
76+
lint.ignore = [
77+
"B904",
78+
"C408",
79+
"D107", # Allow no docstring in __init__, we document it in the class docstring.
80+
"PLW2901",
81+
"SIM105",
82+
"SIM108",
7683
]
77-
78-
[tool.ruff.lint.isort]
79-
known-first-party = ["fake_useragent"]
80-
81-
[tool.ruff.lint.mccabe]
82-
max-complexity = 13
83-
84-
[tool.ruff.lint.per-file-ignores]
85-
"src/fake_useragent/__init__.py" = ["F401"]
86-
"tests/**/*" = ["S", "SIM", "UP015", "D", "DOC"]
87-
"docs/**/*" = ["D", "DOC"]
88-
89-
[tool.ruff.lint.pylint]
90-
max-args = 7
91-
max-branches = 13
92-
93-
[tool.ruff.lint.pydocstyle]
94-
convention = "google"
95-
96-
[tool.setuptools]
97-
zip-safe = false
98-
99-
[tool.setuptools.package-data]
100-
"fake_useragent.data" = ["*.jsonl"]
101-
"fake_useragent" = ["py.typed"]
84+
lint.per-file-ignores."docs/**/*" = [ "D", "DOC" ]
85+
lint.per-file-ignores."src/fake_useragent/__init__.py" = [ "F401" ]
86+
lint.per-file-ignores."tests/**/*" = [ "D", "DOC", "S", "SIM", "UP015" ]
87+
lint.isort.known-first-party = [ "fake_useragent" ]
88+
lint.mccabe.max-complexity = 13
89+
lint.pydocstyle.convention = "google"
90+
lint.pylint.max-args = 7
91+
lint.pylint.max-branches = 13

0 commit comments

Comments
 (0)