-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (136 loc) · 4.16 KB
/
pyproject.toml
File metadata and controls
150 lines (136 loc) · 4.16 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[project]
name = "string_gen"
description = "Generate random strings from regex patterns"
readme = "README.md"
license = {text = "MIT"}
authors = [{ name = "tolstislon", email = "tolstislon@gmail.com" }]
requires-python = ">=3.8"
keywords = ["testing", "test-data", "test-data-generator", "string", "regex"]
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Testing",
]
[project.urls]
Homepage = "https://github.com/tolstislon/string-gen"
Documentation = "https://tolstislon.github.io/string-gen/"
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-data]
string_gen = ["py.typed"]
[tool.setuptools.packages.find]
exclude = ["tests"]
[tool.setuptools_scm]
write_to = "string_gen/__version__.py"
[tool.pytest.ini_options]
addopts = [
"--cov=string_gen",
"--cov-fail-under=100",
"-l",
]
testpaths = ["tests"]
[tool.coverage.run]
omit = ["string_gen/__version__.py"]
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"ruff",
"ty",
]
docs = [
"mkdocs-material",
"mkdocstrings[python]",
]
[tool.ty.environment]
python-version = "3.8"
[tool.ruff]
line-length = 120
target-version = "py38"
exclude = [".git", ".pytest_cache", ".idea", ".github"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"FURB", # refurb
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # Perflint
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"T20", # flake8-print
"UP", # pyupgrade
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"FLY", # flynt
"PL", # Pylint
"RSE", # flake8-raise
"ERA", # eradicate (Закомменченый код)
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"DTZ", # flake8-datetimez
"INT", # flake8-gettext
"TC", # flake8-type-checking
"W", # pycodestyle (warning)
"PLR", # Refactor
"PLW", # Warning
"TRY", # Warning
"ASYNC", # flake8-async
"T10", # flake8-debugger
"EM", # flake8-errmsg
"EXE", # flake8-executable
"LOG", # flake8-logging
"G", # flake8-logging-format
"SLF", # flake8-self
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
"PLE", # Pylint Error
]
ignore = [
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `value`
"D212", # multi-line-summary-first-line (conflicts rules)
"D203", # one-blank-line-before-class (conflicts rules)
"COM812", # conflicts rules
"ISC001", # conflicts rules
"TRY003", # Avoid specifying long messages outside the exception class
"EM102", # Exception must not use an f-string literal, assign to variable first
]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["S101", "D102", "D103", "ANN201", "PLR2004", "FBT001"]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-row-type = "tuple"
parametrize-values-type = "tuple"
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.format]
line-ending = "lf"