forked from syrupy-project/syrupy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (96 loc) · 2.4 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
[tool.poetry]
name = 'syrupy'
license = 'Apache-2.0'
version = "4.1.0"
description = 'Pytest Snapshot Test Utility'
authors = ['Top Hat Open Source <[email protected]>']
readme = 'README.md'
packages = [{ include = 'syrupy', from = 'src' }]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Testing',
'Topic :: Utilities',
]
repository = 'https://github.com/tophat/syrupy'
include = ['src/syrupy/**/*']
[tool.poetry.plugins.pytest11]
syrupy = 'syrupy'
[tool.poetry.dependencies]
python = '>=3.8.1,<4'
colored = '>=1.3.92,<2.0.0'
pytest = '>=7.0.0,<8.0.0'
[tool.poetry.group.test.dependencies]
invoke = '^2.0.0'
coverage = { version = '^7.0.5', extras = ['toml'] }
pytest-benchmark = '^4.0.0'
pytest-xdist = '^3.1.0'
[tool.poetry.group.dev.dependencies]
isort = '^5.12.0'
black = '^23.1.0'
mypy = '^1.0.1'
py-githooks = '^1.1.1'
flake8 = '^6.0.0'
flake8-bugbear = '^23.2.13'
flake8-builtins = '^2.1.0'
flake8-comprehensions = '^3.10.1'
twine = '^4.0.2'
semver = '^3.0.0'
setuptools-scm = '^7.1.0'
debugpy = '^1.6.6'
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.vscode
| \.venv
| \.poetry
| syrupy.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.isort]
force_grid_wrap = 2
known_first_party = 'syrupy'
profile = 'black'
skip = '''
.eggs,
.mypy_cache,
.venv,
syrupy.venv,
.poetry,
build,
dist,
'''
[tool.pytest.ini_options]
addopts = '-p syrupy -p pytester -p no:legacypath --doctest-modules'
testpaths = ['tests']
[tool.coverage.run]
source = ['./src']
[tool.coverage.report]
exclude_lines = ['pragma: no-cover', 'if TYPE_CHECKING:', '@abstractmethod']
[build-system]
requires = ['poetry-core>=1.4.0']
build-backend = 'poetry.core.masonry.api'