-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
106 lines (93 loc) · 2.49 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["setuptools", "setuptools-scm[toml]", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rizza"
description = "An increasingly intelligent automated product tester."
readme = "README.md"
requires-python = ">=3.10"
keywords = ["rizza", "machine learning", "api", "cli", "testing"]
authors = [
{name = "Jacob J Callahan", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"attrs",
"fauxfactory",
"logzero",
"pyyaml",
]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/JacobCallahan/rizza"
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-randomly",
"ruff"
]
[project.scripts]
rizza = "rizza.__main__:main"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.packages.find]
include = ["rizza"]
[tool.setuptools_scm] # same as use_scm_version=True in setup.py
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-v", "-l", "--color=yes", "--code-highlight=yes"]
[tool.ruff]
line-length = 99
target-version = "py311"
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"B", # bugbear
"C90", # mccabe
"E", # pycodestyle
"F", # flake8
"G", # flake8-logging-format
"I", # isort
"PERF", # Perflint rules
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"PTH", # Use pathlib
"PT", # flake8-pytest
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"B019", # lru_cache can lead to memory leaks - acceptable tradeoff
"PLR0911", # too many return statements - acceptable tradeoff
"PLR0913", # too many arguments in function call - acceptable tradeoff
"PT004", # pytest underscrore prefix for non-return fixtures
"PT005", # pytest no underscrore prefix for return fixtures
"RET503", # missing explicit return
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"rizza",
]
combine-as-imports = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.mccabe]
max-complexity = 20