-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (70 loc) · 1.64 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "testing-fixtures"
version = "0.4.1"
authors = [
{ name = "Abid H. Mujtaba", email = "[email protected]" }
]
description = "New approach to Python test fixtures (compatible with pytest)"
keywords = ["tests", "testing", "fixture", "fixtures"]
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"typing-extensions"
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
]
[project.urls]
Homepage = "https://github.com/abid-mujtaba/testing-fixtures"
[project.optional-dependencies]
dev = [
"black",
"mypy",
"pylint",
"pytest",
]
[tool.hatch.build]
exclude = [
"*.md",
".vscode/",
"example",
"tests/"
]
only-packages = true
[tool.hatch.build.targets.wheel]
packages = ["src/testing"]
[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version"
]
branch = "main"
upload_to_release = true # auto create Github Release
[tool.mypy]
strict = true
[tool.ruff]
select = ["ALL"]
ignore = [
"D203", # First 4 rules are mutually incompatible and incompatible with ruff format
"D212",
"COM812",
"ISC001",
"FBT", # Boolean values in function signatures
"ANN101", # Annotate `self` parameter of class methods
]
[tool.ruff.per-file-ignores]
"**/tests/**/*.py" = [
"S101" # assert is allowed in tests
]
"tests/unit/*.py" = [
"T201" # we are using print to track execution path
]
[tool.pylint.'MESSAGE CONTROL']
disable = [
"invalid-name",
"no-else-raise", # conflicts with ruff
]