-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
116 lines (105 loc) · 3.1 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "click-option-group"
authors = [
{ name = "Eugene Prilepin", email = "[email protected]" },
]
description = "Option groups missing in Click"
readme = "README.md"
license = 'BSD-3-Clause'
license-files = { paths = ['LICENSE'] }
requires-python = ">=3.7"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Environment :: Console',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
dynamic = ["version"]
dependencies = [
'Click>=7.0',
]
[project.optional-dependencies]
test = [
"pytest",
]
test-cov = [
"click-option-group[test]",
'pytest-cov',
]
dev = [
"click-option-group[test]",
"pre-commit",
]
docs = [
'sphinx',
'Pallets-Sphinx-Themes',
'm2r2',
]
[project.urls]
Homepage = "https://github.com/click-contrib/click-option-group"
Code = "https://github.com/click-contrib/click-option-group"
Documentation = "https://click-option-group.readthedocs.io"
Issues = "https://github.com/click-contrib/click-option-group/issues"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/click_option_group/_version.py"
[tool.ruff]
exclude = []
line-length = 120
src = ["src"]
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"B", # flake8-bugbear
"I", # isort
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"TID251", # flake8-tidy-imports.banned-api
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
extend-ignore = [
"PLR", # Design rules for pylint
"PLE1205", # Format check doesn't work with our custom logger
"E501", # Line too long
"PT004", # Incorrect, just usefixtures instead.
"PT012", # Block should contain a single simple statement
"RUF009", # Too easy to get a false positive
]
unfixable = ["T20", "F841"]
[tool.isort]
# Even though ruff is used as formatter, isort profile name is "black".
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_sort_within_sections = true
force_to_top = ["typing", "pytest"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage]
run.source = ["src"]