-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (95 loc) · 1.85 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
exclude = ["**/__pycache__"]
[project]
name = "flathub_submission_checker"
version = "0.1.5"
description = "Flathub submission checker"
authors = [
{name = "bbhtt", email = "bbhtt@bbhtt.in"},
]
license = {text = "MIT"}
readme = "README.md"
requires-python = "<4,>=3.12"
dependencies = [
"publicsuffixlist>=1.0.2.20250802,<2",
"PyGithub<3,>=2.6.1",
]
[project.urls]
Homepage = "https://github.com/flathub-infra/flathub-submission-checker"
Repository = "https://github.com/flathub-infra/flathub-submission-checker.git"
[project.scripts]
flathub-submission-checker = "flathub_submission_checker.__main__:main"
[dependency-groups]
dev = [
"pre-commit<5,>=3.8.0",
"mypy<3,>=1.11.2",
"ruff<1,>=0.6.7",
"pytest<10,>=8.3.3",
]
[tool.mypy]
show_error_codes = true
strict = true
extra_checks = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
cache_dir = "~/.cache/mypy"
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = ["no-untyped-def"]
[tool.ruff]
line-length = 88
include = ["*.py"]
target-version = "py312"
[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",
"S607",
"S603",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "E501"]
[tool.ruff.format]
line-ending = "lf"
quote-style = "double"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-vvv -m 'not integration'"
markers = [
"integration: slow integration tests requires network access",
]