-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
pyproject.toml
99 lines (88 loc) · 2.8 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
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.hatch.version]
path = 'devtools/version.py'
[project]
name = 'devtools'
description = "Python's missing debug print command, and more."
authors = [{name = 'Samuel Colvin', email = '[email protected]'}]
license = {file = 'LICENSE'}
readme = 'README.md'
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Environment :: MacOS X',
'License :: OSI Approved :: MIT License',
'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',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
'Typing :: Typed',
]
requires-python = '>=3.7'
dependencies = [
'executing>=1.1.1',
'asttokens>=2.0.0,<3.0.0',
'Pygments>=2.15.0',
]
# keep this meaningless group around to avoid breaking installs using `pip install devtools[pygments]`
optional-dependencies = {pygments = [] }
dynamic = ['version']
[project.urls]
Homepage = 'https://github.com/samuelcolvin/python-devtools'
Documentation = 'https://python-devtools.helpmanual.io'
Funding = 'https://github.com/sponsors/samuelcolvin'
Source = 'https://github.com/samuelcolvin/python-devtools'
Changelog = 'https://github.com/samuelcolvin/python-devtools/releases'
[project.entry-points.pytest11]
devtools = 'devtools.pytest_plugin'
[tool.pytest.ini_options]
testpaths = 'tests'
filterwarnings = 'error'
[tool.coverage.run]
source = ['devtools']
branch = true
omit = ['devtools/__main__.py']
[tool.coverage.report]
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'raise NotImplemented',
'if TYPE_CHECKING:',
'if MYPY:',
'@overload',
]
[tool.black]
color = true
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
skip-string-normalization = true
extend-exclude = ['tests/test_expr_render.py']
[tool.ruff]
line-length = 120
exclude = ['cases_update']
extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I']
flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'}
mccabe = { max-complexity = 14 }
isort = { known-first-party = ['devtools'] }
target-version = 'py37'
[tool.mypy]
show_error_codes = true
strict = true
warn_return_any = false
[[tool.mypy.overrides]]
module = ['executing.*', 'pygments.*']
ignore_missing_imports = true