-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (79 loc) · 1.86 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
[tool.poetry]
name = "pattern-pursuit"
version = "0.1.0"
description = " "
authors = ["smaddanki"]
readme = "README.md"
keywords = ["packaging", "poetry"]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.5.0"
ruff = "^0.2.1"
mypy = "^1.8.0"
black = "^24.1.1"
bandit = "^1.7.6"
pyupgrade = "^3.15.0"
types-requests = "*"
types-python-dateutil = "*"
types-PyYAML = "*"
types-toml = "*"
types-setuptools = "*"
types-urllib3 = "*"
[tool.autopep8]
max_line_length = 88
aggressive = 3
experimental = true
ignore = ["E226", "E24", "W50", "W690"]
select = ["E", "W", "F", "N", "B", "C"]
in-place = true
recursive = true
[tool.ruff]
line-length = 88
target-version = "py313"
preview = true
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"YTT", # flake8-2020
"S", # flake8-bandit
"PIE", # flake8-pie
"RET", # flake8-return
"TCH", # type-checking
"PL", # pylint
"PT", # pytest
"RUF", # ruff-specific
]
ignore = ["E501"] # Line length is handled by black
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
combine-as-imports = true
lines-after-imports = 2
extra-standard-library = ["typing"]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
ignore_missing_imports = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
mypy_path = "base_template"
explicit_package_bases = true
namespace_packages = true