-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (108 loc) · 3.24 KB
/
pyproject.toml
File metadata and controls
120 lines (108 loc) · 3.24 KB
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
[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 :: 3.13',
'Programming Language :: Python :: 3.14',
'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 >= 5.3',
'tomli >= 1.1.0 ; python_version < "3.11"',
'tomli-w >= 1.0.0'
]
lint = [
'darglint',
]
test = [
'pytest',
'pytest-cov',
'pytest-ruff',
'ruff==0.14.8',
]
[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-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 = ['ALL'] # IMPORTANT: keep ruff version pinned!
ignore = [
'ANN', # TODO: enable
'EM101', # Exception must not use a string literal, assign to variable...
'EM102', # Exception must not use an f-string literal
'PTH', # ... should be replaced by `Path...
'SIM105', # contextlib.suppress is slower than try-except-pass
'TRY003', # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.extend-per-file-ignores]
'tests/*' = [
'D', # docstrings
'PLR2004', # Magic value used in comparison...
'S101', # Use of `assert`
'T201', # `print` found
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.pydocstyle]
convention = 'google'