|
1 | 1 | [build-system]
|
2 |
| -requires = ["setuptools"] |
3 | 2 | build-backend = "setuptools.build_meta"
|
4 | 3 |
|
| 4 | +requires = [ "setuptools" ] |
| 5 | + |
5 | 6 | [project]
|
6 | 7 | name = "fake-useragent"
|
7 | 8 | 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'"] |
14 | 9 | description = "Up-to-date simple useragent faker with real world database"
|
| 10 | +readme.content-type = "text/markdown" |
| 11 | +readme.file = "README.md" |
15 | 12 | 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" }, |
23 | 24 | ]
|
| 25 | +requires-python = ">=3.9" |
24 | 26 | 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", |
39 | 45 | ]
|
40 | 46 |
|
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" |
44 | 49 |
|
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" ] |
47 | 56 |
|
48 | 57 | [tool.ruff]
|
49 | 58 | target-version = "py39"
|
50 | 59 | line-length = 142
|
51 | 60 |
|
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", |
67 | 75 | ]
|
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", |
76 | 83 | ]
|
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