forked from mendix/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (73 loc) · 2.08 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
[tool.poetry]
name = "python_project_template"
version = "0.1.0"
description = "Template to generate Python projects with cookiecutter"
readme = "README.md"
repository = "https://github.com/mendix/python-project-template"
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Pytest",
"Typing :: Typed",
]
authors = ["Mendix Cloud Value Added Services Team <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
cookiecutter = "^2"
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
flake8 = "^7"
black = "^24"
isort = "^5"
pylint = "^3"
mypy = "^1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8"
pytest-cookies = "^0"
[build-system]
requires = ["poetry-core<2"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 79
[tool.isort]
ensure_newline_before_comments = true
include_trailing_comma = true
line_length = 79
multi_line_output = 3
split_on_trailing_comma = true
[tool.mypy]
strict = true
pretty = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
[[tool.mypy.overrides]]
module = ["pytest_cookies.*"]
ignore_missing_imports = true
[tool.pylint.BASIC]
module-rgx = "[a-z_][a-z0-9_]{2,32}$"
const-rgx = "[a-zA-Z_][a-zA-Z0-9_]{2,32}$"
class-rgx = "[A-Z_][a-zA-Z0-9]+$"
function-rgx = "([a-z_][a-z0-9_]{2,32}|(assert|test_|__)[a-z_][a-z0-9_]{2,80})$"
method-rgx = "([a-z_][a-z0-9_]{2,32}|(assert|test_|__)[a-z_][a-z0-9_]{2,80})$"
attr-rgx = "[a-z_][a-z0-9_]{2,32}$"
argument-rgx = "[a-z_][a-z0-9_]{2,32}$"
variable-rgx = "[a-z_][a-z0-9_]{2,32}$"
class-attribute-rgx = "([A-Za-z_][A-Za-z0-9_]{2,32}|(__.*__))$"
inlinevar-rgx = "[A-Za-z_][A-Za-z0-9_]*$"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"missing-docstring",
"locally-disabled",
"too-few-public-methods",
"fixme",
]
msg-template = "{module}:{line} [{msg_id}: {symbol}] - {msg}"
[tool.pylint.REPORTS]
reports = "yes"
[tool.pylint.FORMAT]
max-line-length = 79