-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (135 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
153 lines (135 loc) · 3.04 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
143
144
145
146
147
148
149
150
151
152
# This section is not used for building anything
# but it is informative and most of theses informations
# should be the same as the plugin's metatada.txt
[project]
name = "cartads"
version = "0.1.0"
description = "An exemple of plugin development setup"
authors = [
{ name = "3Liz", email = "info@3liz.com" }
]
requires-python = ">= 3.10"
license = "GPL-2.0-only"
license-files = ["LICENSE"]
readme = "README.md"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
]
[projects.urls]
tracker = "https://github.com/3liz/qgis-qgis-cartads-plugin-plugin"
repository = "https://github.com/3liz/qgis-qgis-cartads-plugin-plugin"
homepage = "https://github.com/3liz/qgis-qgis-cartads-plugin-plugin"
# Organize dependencies so that uv can build appropriates
# requirement files for CI
[dependency-groups]
dev = [
"coverage[toml]",
{include-group = "tests"},
{include-group = "lint"},
]
tests = [
"semver",
"pytest",
"pytest_qgis",
"psycopg[binary]",
]
lint = [
"ruff",
"mypy",
"bandit",
"vulture",
"types-requests",
]
transifex = [
"qt-transifex; python_full_version >= '3.12'",
]
doc = [
"mkdocs-material>=7.0.0,<10.0.0",
"mkdocs-git-revision-date-localized-plugin",
]
[tool.uv.sources]
qt-transifex = { git = "https://github.com/3liz/qt-transifex" }
pytest-qgis = { git = "https://github.com/3liz/pytest-qgis.git" }
[tool.yapt]
plugin_source = "cartads"
[tool.qt-transifex]
plugin_source = "cartads"
organization = "3liz-1"
project = "qgis-cartads-plugin"
resource = "qgis-cartads-plugin"
#minimum_translation = 25.0
#
# Ruff
#
# https://doc.astral.sh/ruff/configuration
#
[tool.ruff]
line-length = 110
target-version = "py310"
exclude = [
".venv",
".local",
]
[tool.ruff.format]
indent-style = "space"
[tool.ruff.lint]
extend-select = [
"E", "F", "I", "ANN", "W", "T", "COM", "RUF",
"C4", "TC",
]
# COM812 conflict with formatter
ignore = [
"ANN002",
"ANN003",
"ANN401", # Dynamically typed expressions (typing.Any)
"COM812",
"RUF067", # module should only contain docstrings and re-exports
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [ "T201" ]
"__init__.py" = [ "F401" ]
"__main__.py" = [ "T201" ]
[tool.ruff.lint.isort]
lines-between-types = 1
known-first-party = [
"cartads",
]
known-third-party = [
"qgis",
]
order-by-type = true
[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
suppress-none-returning = true
suppress-dummy-args = true
#
# Mypy
#
[tool.mypy]
python_version = "3.10"
[[tool.mypy.overrides]]
module = [
"qgis.*",
"osgeo.*",
"processing.*",
]
ignore_missing_imports = true
#
# Coverage
#
[tool.coverage.run]
source = ["cartads"]
branch = true
relative_files = true
[tool.coverage.report]
precision = 2
exclude_lines = [
"if TYPE_CHECKING",
'\(Protocol\):$',
]