-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
110 lines (102 loc) · 3.31 KB
/
setup.cfg
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
[metadata]
name = darkgraylib
version = attr: darkgraylib.version.__version__
author = Antti Kaihola
author_email = [email protected]
license = BSD
license_file = LICENSE
description = Common supporting code for Darker and Graylint
# long_description is read and manipulated in setup.py
long_description_content_type = text/x-rst
classifiers =
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
project_urls =
Source Code = https://github.com/akaihola/darkgraylib
Change Log = https://github.com/akaihola/darkgraylib/blob/main/CHANGES.rst
News = https://github.com/akaihola/darkgraylib/discussions/categories/announcements
url = https://github.com/akaihola/darkgraylib
[options]
include_package_data = True
package_dir =
=src
packages = find:
install_requires =
# NOTE: remember to keep `constraints-oldest.txt` in sync with these
toml>=0.10.0
# NOTE: remember to keep `.github/workflows/python-package.yml` in sync
# with the minimum required Python version
python_requires = >=3.9
[options.packages.find]
where = src
exclude = darkgraylib.tests
[options.package_data]
darkgraylib =
py.typed
[options.entry_points]
pygments.lexers =
lint_location = darkgraylib.highlighting.lexers:LocationLexer
lint_description = darkgraylib.highlighting.lexers:DescriptionLexer
pytest11 =
pytest_git_repo = darkgraylib.testtools.git_repo_plugin
pytest_clear_black_cache = darkgraylib.testtools.clear_black_cache_plugin
pytest_temp_copy = darkgraylib.testtools.temp_copy
pytest_patching = darkgraylib.testtools.patching
[options.extras_require]
color =
Pygments>=2.4.0
test =
# NOTE: remember to keep `constraints-oldest.txt` in sync with these
click>=8.0.0
cryptography>=3.3.2 # through twine, fixes CVE-2020-36242
defusedxml>=0.7.1
flake8
mypy
Pygments>=2.4.0
pydocstyle
pylint>=3.3.0
pytest>=6.2.0
pytest-kwparametrize>=0.0.3
requests_cache>=0.7
ruamel.yaml>=0.17.21
ruff>=0.0.292
twine>=2.0.0
types-requests>=2.27.9
types-toml>=0.10.4
urllib3>=1.25.9 # through requests-cache and twine, fixes CVE-2020-26137
wheel>=0.21.0
release =
darkgray-dev-tools~=0.1.1
[flake8]
# Line length according to Black rules
max-line-length = 88
# Ignore rules which conflict with Black
ignore =
# C408 Unnecessary dict call - rewrite as a literal.
C408
# D400 First line should end with a period (from flake8-docstrings)
D400
# D415 First line should end with a period, question mark, or exclamation point
D415
# E231 missing whitespace after ','
E231
# W503 line break before binary operator
W503
# Darglint options when run as a Flake8 plugin:
strictness = short
docstring_style = sphinx
# This requires https://github.com/terrencepreilly/darglint/pull/210:
darglint_ignore_regex=^test_
[darglint]
# Run `darglint --verbosity=2` to get nice descriptions in messages.
# Unfortunately `verbosity` isn't read from the configuration file.
message_template = {path}:{line}: {msg} {msg_id} {obj}
docstring_style = sphinx
ignore_regex = ^test_
[codespell]
ignore-words-list = nd
skip = .git,*.json