-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
142 lines (131 loc) · 3.12 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
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
[build-system]
requires = ['flit_core >=3.2,<4']
build-backend = 'flit_core.buildapi'
[project]
name = 'nested_diff'
authors = [{name = 'Michael Samoglyadov', email = 'mixas.sr@gmail.com'}]
readme = 'README.md'
license = {file = 'LICENSE'}
keywords = [
'diff',
'nested-diff',
'recursive-diff',
'nested-data',
'data-structures',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'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',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: File Formats :: JSON',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
]
dynamic = ['version', 'description']
dependencies = []
requires-python = '>=3.7'
[project.optional-dependencies]
cli = [
'pyyaml',
'tomli >= 1.1.0 ; python_version < "3.11"',
'tomli-w >= 1.0.0'
]
lint = [
'darglint',
]
test = [
'pytest',
'pytest-cov',
'pytest-ruff',
'ruff==0.6.3',
]
[project.scripts]
nested_diff = 'nested_diff.diff_tool:App.cli'
nested_patch = 'nested_diff.patch_tool:App.cli'
[project.urls]
Homepage = 'https://github.com/mr-mixas/Nested-Diff.py'
Repository = 'https://github.com/mr-mixas/Nested-Diff.py.git'
[tool.pytest.ini_options]
addopts = """
--cov=nested_diff \
--cov-fail-under=99 \
--cov-report term-missing \
--no-cov-on-fail \
--ruff \
--ruff-format \
--verbosity=2 \
"""
doctest_optionflags = 'NORMALIZE_WHITESPACE'
testpaths = 'nested_diff tests'
[tool.ruff]
extend-exclude = [
'tests/data/formatters',
'tests/data/standard.py',
]
line-length = 79
[tool.ruff.format]
docstring-code-format = true
quote-style = 'single'
[tool.ruff.lint]
select = [
'A',
'ARG',
'B',
'BLE',
'C4',
'COM',
'D',
'DTZ',
'E',
'ERA',
'EXE',
# 'FBT', # TODO
'FLY',
'G',
'ICN',
'ISC',
'LOG',
'N',
'PGH',
'PIE',
'PT',
# 'PL', # TODO
'PLE',
'Q',
'RET',
'RSE',
'RUF',
'SIM',
'SLF',
'TD',
'UP',
'W',
]
ignore = [
'D407', # Missing dashed underline after section
'SIM105', # contextlib.suppress is slower than try-except-pass
]
[tool.ruff.lint.extend-per-file-ignores]
'tests/*' = [
'D', # docstrings
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.pydocstyle]
convention = 'google'