-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (81 loc) · 2.57 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
[tool.poetry]
name = "pytest-unused-fixtures"
version = "0.1.5"
description = "A pytest plugin to list unused fixtures after a test run."
authors = ["Mikuláš Poul <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{include = "pytest_unused_fixtures"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Testing",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Pytest",
]
include = ["LICENSE"]
repository = "https://github.com/mikicz/pytest-unused-fixtures"
keywords = ["pytest", "fixtures"]
[tool.poetry.plugins."pytest11"]
pytest-unused-fixtures = "pytest_unused_fixtures"
[tool.poetry.dependencies]
python = "^3.9"
pytest = ">7.3.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.7.0"
pytest-xdist = "^3.3.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
# https://github.com/charliermarsh/ruff#pyflakes-f
"F",
# https://github.com/charliermarsh/ruff#pycodestyle-e-w
"E",
"W",
# https://github.com/charliermarsh/ruff#isort-i
"I",
# https://github.com/charliermarsh/ruff#pep8-naming-n
"N",
# https://github.com/charliermarsh/ruff#pyupgrade-up
"UP",
# https://github.com/charliermarsh/ruff#flake8-bugbear-b
"B",
# https://github.com/charliermarsh/ruff#flake8-comprehensions-c4
"C4",
# https://github.com/charliermarsh/ruff#flake8-debugger-t10
"T10",
# https://github.com/charliermarsh/ruff#flake8-pie-pie
"PIE",
# https://github.com/charliermarsh/ruff#flake8-pytest-style-pt
"PT",
# https://github.com/charliermarsh/ruff#flake8-return-ret
"RET",
# https://github.com/charliermarsh/ruff#flake8-simplify-sim
"SIM",
]
# Never enforce...
ignore = [
"E501", # line length violations
"PT004", # missing-fixture-name-underscore
"SIM108", # use-ternary-operator
"RET505", # superfluous-else-return
"RET506", # superfluous-else-raise
"RET507", # superfluous-else-continue
"RET508", # superfluous-else-break
"B027", # empty-method-without-abstract-decorator
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "list"