Skip to content

Commit 7d520c0

Browse files
2 parents af37449 + 8a5b6c9 commit 7d520c0

1 file changed

Lines changed: 94 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
[project]
2+
name = "pytest-dynamic-params"
3+
version = "0.2.0"
4+
description = "Dynamic parameters plugin for pytest"
5+
readme = "README.md"
6+
authors = [
7+
{ name = "Cheng Pei", email = "penelope_cheng@163.com" }
8+
]
9+
license = { file = "LICENSE" }
10+
classifiers = [
11+
"Framework :: Pytest",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.8",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Operating System :: OS Independent",
19+
"License :: OSI Approved :: MIT License",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Testing"
22+
]
23+
requires-python = ">=3.8"
24+
dependencies = [
25+
"pytest"
26+
]
27+
keywords = [
28+
"pytest", "testing",
29+
"dynamic-parameters", "parameterization",
30+
"fixture-integration", "dependency-management",
31+
"lazy-loading", "cache"
32+
]
33+
34+
[project.urls]
35+
homepage = "https://github.com/ProgrammerChengPei/pytest-dynamic-params"
36+
repository = "https://github.com/ProgrammerChengPei/pytest-dynamic-params.git"
37+
38+
[project.optional-dependencies]
39+
dev = [
40+
"black",
41+
"flake8",
42+
"isort",
43+
"mypy",
44+
"bandit",
45+
"pre-commit",
46+
"pytest-cov"
47+
]
48+
49+
[project.entry-points.pytest11]
50+
dynamic-params = "dynamic_params.plugin"
51+
52+
[build-system]
53+
requires = ["setuptools", "wheel"]
54+
build-backend = "setuptools.build_meta"
55+
56+
[tool.basedpyright]
57+
pythonVersion = "3.8"
58+
strict = true
59+
reportMissingImports = true
60+
reportMissingTypeStubs = true
61+
reportUnusedVariable = true
62+
reportUnusedImport = true
63+
64+
[tool.pytest.ini_options]
65+
testpaths = ["tests"]
66+
pythonpath = ["src"]
67+
68+
[tool.black]
69+
line-length = 88
70+
target-version = ['py38']
71+
72+
[tool.isort]
73+
profile = "black"
74+
75+
[tool.flake8]
76+
max-line-length = 88
77+
extend-ignore = [
78+
"E203", # 与 black 冲突的空格规则
79+
"ANN101", "ANN102", "ANN103", "ANN104", # 忽略 self/cls 的类型注解检查
80+
"ANN201", "ANN202", "ANN203", "ANN204", "ANN205", "ANN206", # 忽略返回值类型注解检查
81+
"ANN001", "ANN002", "ANN003" # 忽略参数类型注解检查
82+
]
83+
84+
[tool.flake8.plugins]
85+
flake8-annotations = false
86+
87+
[tool.mypy]
88+
python_version = "3.10"
89+
ignore_missing_imports = true
90+
exclude = "^tests/|^venv/|^\\.venv/"
91+
mypy_path = "src"
92+
follow_imports = "silent"
93+
warn_unused_configs = true
94+
namespace_packages = true

0 commit comments

Comments
 (0)