File: pyproject.toml

package info (click to toggle)
python-syrupy 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,396 kB
  • sloc: python: 5,982; makefile: 3
file content (79 lines) | stat: -rw-r--r-- 1,927 bytes parent folder | download
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
[project]
name = 'syrupy'
license = 'MIT'
dynamic = [ "version", "classifiers" ]
description = 'Pytest Snapshot Test Utility'
readme = 'README.md'
requires-python = ">=3.10"
authors = [{name = 'Noah Ulster'}]
dependencies = [
  "pytest (>= 8.0.0)"
]

[project.urls]
repository = 'https://github.com/syrupy-project/syrupy'

[tool.poetry]
version = "5.0.0"
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.10',
    'Programming Language :: Python :: 3.11',
    'Programming Language :: Python :: 3.12',
    'Programming Language :: Python :: 3.13',
    'Topic :: Software Development :: Libraries',
    'Topic :: Software Development :: Testing',
    'Topic :: Utilities',
]
include = ['src/syrupy/**/*']

[tool.poetry.plugins.pytest11]
syrupy = 'syrupy'

[tool.poetry.group.test.dependencies]
invoke = "^2.2.0"
coverage = { version = "^7.6.12", extras = ['toml'] }
pytest-benchmark = "^5.1.0"
pytest-xdist = "^3.6.1"

[tool.poetry.group.dev.dependencies]
mypy = "^1.15.0"
py-githooks = '^1.1.1'
twine = '^6.1.0'
semver = '^3.0.4'
setuptools-scm = '^9.0.0'
debugpy = '^1.8.12'
ruff = '>=0.9.6'

[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
]

[build-system]
requires = ['poetry-core>=2.2.1']
build-backend = 'poetry.core.masonry.api'