-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (53 loc) · 1.37 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
[tool.poetry]
name = "rh-templates"
version = "0.1.0"
description = ""
authors = ["ramblehead <[email protected]>"]
readme = "README.md"
packages = [
{ include = "poetry_utils", from = "utils" },
{ include = "templates/**/*.py" },
]
[tool.poetry.scripts]
lint = "poetry_utils.scripts:lint"
[tool.poetry.dependencies]
python = "^3.11"
mako = "^1.2.4"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
pyright = "^1.1.318"
ruff = "^0.0.276"
mypy = "^1.4.1"
ruff-lsp = "^0.0.35"
[tool.ruff]
select = ["ALL"]
ignore = [
# No need
"DJ", # flake8-django
"UP009", # UTF-8 encoding declaration is unnecessary
# subprocess call with shell=True seems safe, but
# may be changed in the future; consider rewriting without shell
"S602",
"S607", # Starting a process with a partial executable path
# Should be enabled later when project is more mature
"D", # pydocstyle
# Should be enabled for releases
"ERA001", # eradicate (e.g. comments)
"T20", # flake8-print
# rh-template dirs should implicit namespace packages
# "INP001", # implicit-namespace-package
]
line-length = 110
extend-exclude = [
"**/__pycache__",
"**/.*",
]
[tool.ruff.extend-per-file-ignores]
"templates/*/rh-template/**.*" = [
"INP001", # implicit-namespace-package
]
[tool.black]
line-length = 79
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"