-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (101 loc) · 2.63 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
107
108
109
110
111
112
113
114
115
116
117
118
[tool.poetry]
name = "dev-setup"
version = "1.3.1"
description = "My own Ansible collection for development setup."
authors = ["Federico Jaureguialzo <fedejaure@gmail.com>"]
readme = "README.md"
homepage = "https://github.com/fedejaure/dev-setup"
repository = "https://github.com/fedejaure/dev-setup"
package-mode = false
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/fedejaure/dev-setup/issues"
[tool.poetry.dependencies]
python = "<3.11,>=3.10"
ansible = "^10.4.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.8.0"
invoke = "^2.2.0"
bump2version = "^1.0.1"
[tool.poetry.group.test.dependencies]
molecule = "^24.9.0"
molecule-plugins = {extras = ["docker"], version = "^23.5.3"}
[tool.poetry.group.lint.dependencies]
isort = "^5.13.2"
black = "^24.8.0"
ruff = "^0.6.5"
yamllint = "^1.35.1"
ansible-lint = {version = "^24.7.0", markers = "platform_system != 'Windows'"}
[tool.poetry.group.security.dependencies]
safety = "^3.2.7"
[tool.poetry.group.typing.dependencies]
mypy = "^1.11.2"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-material = "^9.5.34"
mkdocs-minify-plugin = "^0.8.0"
termynal = "^0.12.1"
[tool.ruff]
target-version = "py310"
output-format = "full"
line-length = 99
fix = true
extend-exclude = [
"material/*",
]
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"C", # mccabe
"I", # isort
"N", # pep8-naming
"D", # flake8-docstrings
"ANN", # flake8-annotations
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"G", # flake8-logging-format
"ERA", # eradicate
"ISC", # flake8-implicit-str-concat
"RUF", # Ruff-specific rules
]
ignore = ["ANN101", "D203", "D213"]
unfixable = [
"ERA", # Don't remove commented-out code
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
".jupyter/jupyter_lab_config.py" = ["E501", "ERA001"]
"src/deeptune/utils.py" = ["ANN401"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 99
known_third_party = ["invoke", "nox"]
[tool.black]
line-length = 99
target-version = ["py310"]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["invoke.*"]
allow_redefinition = false
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
warn_unreachable = true
warn_no_return = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"