Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,6 @@ resources.py
*.db

.vscode

# OpenCode
AGENTS.md
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
repos:
- repo: https://github.com/google/addlicense
rev: v1.2.0
hooks:
- id: addlicense
args: [ "-f", "assets/license-header.txt"]
types: [python]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
rev: v0.16.4
hooks:
- id: ruff
args: [--fix]
Expand Down
15 changes: 15 additions & 0 deletions assets/license-header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
NextGIS QuickMapServices
Copyright (C) {{.Year}} NextGIS

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or any
later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see <https://www.gnu.org/licenses/>.
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ readme = "README.md"
license = { file = "LICENSE" }


[tool.qgspb.package-data]
"quick_map_services" = [".bandit"]
[tool.qgsmith.package-data]
"quick_map_services.assets" = ["**/*.json"]
"quick_map_services.quickmapservices_contrib.data_sources" = [
"**/*.png",
Expand All @@ -20,15 +19,15 @@ license = { file = "LICENSE" }
]
"quick_map_services.icons" = ["*.svg", "*.png", "material/*.svg"]

[tool.qgspb.forms]
[tool.qgsmith.forms]
ui-files = [
"src/quick_map_services/gui/*.ui",
"src/quick_map_services/scales.xml",
"src/quick_map_services/*.ui",
]
compile = false

[tool.qgspb.translations]
[tool.qgsmith.translations]
ts-files = ["src/quick_map_services/i18n/*.ts"]
no-obsolete = true

Expand Down Expand Up @@ -112,3 +111,7 @@ extend-ignore-names = [
"createWidget",
"*Event",
]

[tool.bandit]
exclude_dirs = ["tests", "setup.py"]
skips = ["B101", "B608"]
Loading