-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (97 loc) · 2.26 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
[project]
name = "syrupy"
version = "5.5.3"
description = "Pytest Snapshot Test Utility"
authors = [{ name = "Noah Ulster" }]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
dependencies = ["pytest (>= 8.0.0)"]
[project.urls]
repository = "https://github.com/syrupy-project/syrupy"
[project.entry-points.pytest11]
syrupy = "syrupy"
[dependency-groups]
test = [
"invoke>=3.0.3,<4",
"coverage[toml]>=7.6.12,<8",
"hypothesis>=6.0.0,<7",
"pytest-benchmark>=5.1.0,<6",
"pytest-xdist>=3.6.1,<4",
"pydantic>=2.13.4,<3",
"attrs>=26.1.0,<27",
]
dev = [
"mypy>=2.1.0,<3",
"py-githooks>=1.1.1,<2",
"debugpy>=1.8.20,<2",
"ruff>=0.16,<0.17",
"attrs>=26.1.0,<27",
]
[tool.uv]
default-groups = [
"test",
"dev",
]
exclude-newer = "3 days"
[tool.hatch.build.targets.sdist]
include = [
"conftest.py",
"src/syrupy",
"tests",
]
[tool.hatch.build.targets.wheel]
include = ["src/syrupy"]
[tool.hatch.build.targets.wheel.sources]
"src/syrupy" = "syrupy"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
addopts = '-p syrupy -p pytester -p no:legacypath --doctest-modules'
testpaths = ['tests']
xfail_strict = true
[tool.coverage.run]
source = ['./src']
[tool.coverage.report]
exclude_lines = ['pragma: no-cover', 'if TYPE_CHECKING:', '@abstractmethod']
[tool.ruff]
line-length = 88
unsafe-fixes = true
[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", # isort
"UP", # pyupgrade
]
ignore = [
"BLE001",
"DTZ001",
"DTZ003",
"DTZ005",
"PLC0206",
"PLE2513",
"PLR0124",
"PLR0133",
"PLW0602",
"RUF012",
"S110",
"TRY002",
]