forked from flathub-infra/flatpak-builder-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (128 loc) · 2.9 KB
/
pyproject.toml
File metadata and controls
142 lines (128 loc) · 2.9 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = [
"flatpak_builder_lint",
"flatpak_builder_lint.checks",
"flatpak_builder_lint.staticfiles"
]
exclude = ["**/__pycache__"]
[tool.setuptools.package-data]
flatpak_builder_lint = [
"staticfiles/flathub-stable.summary",
"staticfiles/flathub-beta.summary",
"staticfiles/*.json"
]
[project]
name = "flatpak_builder_lint"
version = "3.0.0"
description = "A linter for flatpak-builder manifests"
authors = [
{name = "Bartłomiej Piotrowski", email = "b@bpiotrowski.pl"},
{name = "bbhtt", email = "bbhtt@bbhtt.in"},
]
license = {text = "MIT"}
readme = "README.md"
requires-python = "<4.0,>=3.10"
dependencies = [
"jsonschema<5.0.0,>=4.23.0",
"requests<3.0.0,>=2.32.2",
"lxml<6.0.0,>=5.3.0",
"sentry-sdk<3.0.0,>=2.8.0",
"PyGObject<4.0.0,>=3.48.2",
"requests-cache<2.0.0,>=1.2.1",
"ruamel.yaml<1.0.0,>=0.18.14",
"publicsuffixlist>=1.0.2.20250802,<2",
]
[project.urls]
Homepage = "https://github.com/flathub-infra/flatpak-builder-lint"
Documentation = "https://docs.flathub.org/docs/for-app-authors/linter"
Repository = "https://github.com/flathub-infra/flatpak-builder-lint.git"
Issues = "https://github.com/flathub-infra/flatpak-builder-lint/issues"
[project.scripts]
flatpak-builder-lint = "flatpak_builder_lint.cli:main"
[dependency-groups]
dev = [
"pytest<9.0.0,>=8.3.3",
"pytest-xdist>=3.8.0,<4.0.0",
"mypy<2.0.0,>=1.11.2",
"ruff<1.0.0,>=0.6.7",
"pre-commit<4.0.0,>=3.8.0",
"types-requests<3.0.0.0,>=2.32.0.20240914",
"types-jsonschema<5.0.0.0,>=4.23.0.20240813",
"types-lxml<2025.0.0,>=2024.9.16",
"PyGObject-stubs<3.0.0,>=2.11.0",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
extra_checks = true
no_implicit_optional = true
no_implicit_reexport = true
show_error_codes = true
strict = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
cache_dir = "~/.cache/mypy"
[tool.ruff]
line-length = 100
include = ["*.py"]
target-version = "py310"
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C4",
"DTZ",
"E",
"ERA",
"F",
"I",
"ICN",
"PIE",
"PL",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T201",
"UP",
"W",
]
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",
]