-
Notifications
You must be signed in to change notification settings - Fork 136
/
pyproject.toml
100 lines (88 loc) · 1.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
[tool.poetry]
name = "flatpak_builder_lint"
version = "3.0.0"
description = "A linter for flatpak-builder manifests"
authors = ["Bartłomiej Piotrowski <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.10"
jsonschema = "^4.19.1"
requests = "^2.32.2"
lxml = "^5.3.0"
sentry-sdk = "^2.8.0"
PyGObject = "^3.48.2"
requests-cache = "^1.2.1"
[tool.poetry.dev-dependencies]
pytest = "^8.3.3"
mypy = "^1.11.2"
ruff = "^0.6.7"
pre-commit = "^3.8.0"
types-requests = "^2.32.0.20240914"
types-jsonschema = "^4.23.0.20240813"
types-lxml = "^2024.9.16"
PyGObject-stubs = "^2.11.0"
[tool.poetry.scripts]
flatpak-builder-lint = "flatpak_builder_lint.cli:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
[tool.mypy]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_unused_ignores = true
show_error_codes = true
warn_return_any = true
[tool.ruff]
line-length = 100
include = ["*.py"]
target-version = "py310"
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"B",
"A",
"C4",
"DTZ",
"SIM",
"I",
"ICN",
"PIE",
"T201",
"Q",
"RSE",
"RET",
"ARG",
"ERA",
"PL",
"UP",
"S",
]
ignore = [
"PLR2004",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"S105",
"S320",
"S607",
"S603",
]
[tool.ruff.format]
line-ending = "lf"
quote-style = "double"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.pytest.ini_options]
addopts = "--ignore=tests/repo --ignore=tests/test_httpserver.py"
testpaths = [
"tests",
]