Skip to content

Commit 57dec36

Browse files
committed
Merge remote-tracking branch 'plugin_loopstructural/main'
2 parents b34340c + 7e511a3 commit 57dec36

File tree

146 files changed

+15037
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+15037
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Bug/Crash report.
2+
description: Create a bug report to help us improve our plugin.
3+
labels:
4+
- "Bug"
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to fill out this bug report correctly.
11+
12+
- type: textarea
13+
id: what
14+
attributes:
15+
label: What is the bug or the crash?
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: steps
21+
attributes:
22+
label: Steps to reproduce the issue
23+
description: |
24+
Steps, sample datasets and qgis project file to reproduce the behavior.
25+
Screencasts or screenshots are more than welcome, you can drag&drop them in the text box.
26+
27+
1. Go to '...'
28+
2. Click on '...'
29+
3. Scroll down to '...'
30+
4. See error
31+
validations:
32+
required: true
33+
34+
- type: textarea
35+
id: about-info
36+
attributes:
37+
label: Versions
38+
description: |
39+
In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here.
40+
Do not make a screenshot.
41+
validations:
42+
required: true
43+
44+
- type: checkboxes
45+
id: qgis-version
46+
attributes:
47+
label: Supported QGIS version
48+
description: |
49+
Each month, there is a new release of QGIS. According to the release schedule, you should at least be running a supported QGIS version.
50+
You can check the release schedule https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule
51+
options:
52+
- label: I'm running a supported QGIS version according to the official roadmap.
53+
54+
- type: checkboxes
55+
id: new-profile
56+
attributes:
57+
label: New profile
58+
description: |
59+
Did you try with a new QGIS profile? Some issues or crashes might be related to other plugins or specific configuration.
60+
You must try with a new profile to check if the issue remains.
61+
Read this link how to create a new profile
62+
https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles
63+
options:
64+
- label: I tried with a new QGIS profile
65+
66+
- type: textarea
67+
id: additional-context
68+
attributes:
69+
label: Additional context
70+
description: |
71+
Add any other context about the problem here.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Feature request
2+
description: Suggest a feature idea.
3+
labels:
4+
- 'Feature Request'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request correctly.
10+
11+
- type: textarea
12+
id: what
13+
attributes:
14+
label: Feature description
15+
description: A clear and concise description of what you want to happen.
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: Additional
21+
attributes:
22+
label: Additional context
23+
description: |
24+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: true
2+
3+
contact_links:
4+
- name: Documentation
5+
url: https://github.com/Loop3d/loopstructural-qgis/
6+
about: Please read carefully the documentation before to submit an issue.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/requirements"
5+
schedule:
6+
interval: monthly
7+
time: "04:00"
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "monthly"

.github/labeler.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
ci-cd:
2+
- changed-files:
3+
- any-glob-to-any-file: .github/**
4+
5+
dependencies:
6+
- changed-files:
7+
- any-glob-to-any-file:
8+
- requirements/*.txt
9+
- requirements.txt
10+
11+
documentation:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- docs/**
15+
- requirements/documentation.txt
16+
17+
enhancement:
18+
- head-branch:
19+
- ^feature
20+
- feature
21+
- ^improve
22+
- improve
23+
24+
packaging:
25+
- head-branch:
26+
- ^packaging
27+
- packaging
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- requirements/packaging.txt
31+
- setup.py
32+
33+
quality:
34+
- changed-files:
35+
- any-glob-to-any-file:
36+
- tests/**/*
37+
38+
39+
tooling:
40+
- head-branch:
41+
- ^tooling
42+
- tooling
43+
- changed-files:
44+
- any-glob-to-any-file:
45+
- .pre-commit-config.yaml
46+
- setup.cfg
47+
48+
49+
UI:
50+
- head-branch:
51+
- ^ui
52+
- ui
53+
- changed-files:
54+
- any-glob-to-any-file:
55+
- loopstructural/**/*.ui
56+
- loopstructural/gui/**

.github/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- pre-commit-ci
6+
categories:
7+
- title: Bugs fixes 🐛
8+
labels:
9+
- bug
10+
- title: Features and enhancements 🎉
11+
labels:
12+
- enhancement
13+
- UI
14+
- title: Tooling 🔧
15+
labels:
16+
- ci-cd
17+
- title: Documentation 📖
18+
labels:
19+
- documentation
20+
- title: Other Changes
21+
labels:
22+
- "*"

.github/workflows/auto-labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v6
13+
with:
14+
repo-token: "${{ secrets.GH_PAT }}"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: "📚 Documentation"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/documentation.yml'
9+
- 'docs/**/*'
10+
- "loopstructural/**/*.py"
11+
- "loopstructural/metadata.txt"
12+
- 'requirements/documentation.txt'
13+
tags:
14+
- "*"
15+
16+
pull_request:
17+
branches:
18+
- main
19+
paths:
20+
- ".github/workflows/documentation.yml"
21+
- docs/**/*
22+
- requirements/documentation.txt
23+
24+
workflow_dispatch:
25+
26+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
27+
permissions:
28+
contents: read
29+
pages: write
30+
id-token: write
31+
32+
# Allow one concurrent deployment per branch/pr
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
35+
cancel-in-progress: true
36+
37+
env:
38+
PYTHON_VERSION: 3.9
39+
40+
jobs:
41+
build:
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Get source code
46+
uses: actions/checkout@v5
47+
48+
- name: Set up Python
49+
uses: actions/setup-python@v6
50+
with:
51+
cache: "pip"
52+
cache-dependency-path: "requirements/documentation.txt"
53+
python-version: ${{ env.PYTHON_VERSION }}
54+
55+
- name: Cache Sphinx cache
56+
uses: actions/cache@v4
57+
with:
58+
path: docs/_build/cache
59+
key: ${{ runner.os }}-sphinx-${{ hashFiles('docs/**/*') }}
60+
restore-keys: |
61+
${{ runner.os }}-sphinx-
62+
63+
- name: Install dependencies
64+
run: |
65+
python -m pip install -U pip setuptools wheel
66+
python -m pip install -U -r requirements/documentation.txt
67+
68+
- name: Build doc using Sphinx
69+
run: sphinx-build -b html -j auto -d docs/_build/cache -q docs docs/_build/html
70+
71+
- name: Save build doc as artifact
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: documentation
75+
path: docs/_build/html/*
76+
if-no-files-found: error
77+
retention-days: 30
78+
79+
80+
- name: Setup Pages
81+
uses: actions/configure-pages@v5
82+
if: ${{ github.event_name == 'push' && ( startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' ) }}
83+
84+
- name: Upload artifact
85+
uses: actions/upload-pages-artifact@v4
86+
if: ${{ github.event_name == 'push' && ( startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' ) }}
87+
with:
88+
# Upload entire repository
89+
path: docs/_build/html/
90+
91+
- name: Deploy to GitHub Pages
92+
id: deployment
93+
if: ${{ github.event_name == 'push' && ( startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' ) }}
94+
uses: actions/deploy-pages@v4

.github/workflows/linter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "✅ Linter"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**.py'
9+
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- '**.py'
15+
16+
env:
17+
PROJECT_FOLDER: "loopstructural"
18+
PYTHON_VERSION: 3.9
19+
permissions:
20+
contents: write
21+
22+
23+
jobs:
24+
lint-py:
25+
name: Python 🐍
26+
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Get source code
31+
uses: actions/checkout@v5
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v6
35+
with:
36+
cache: "pip"
37+
python-version: ${{ env.PYTHON_VERSION }}
38+
39+
- name: Install dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install black ruff
43+
- name: Autoformat with black
44+
run: |
45+
black .
46+
- name: Lint with ruff
47+
run: |
48+
ruff check ${{env.PROJECT_FOLDER}} --fix
49+
# - uses: stefanzweifel/git-auto-commit-action@v6
50+
# with:
51+
# commit_message: "style: style fixes by ruff and autoformatting by black"
52+

0 commit comments

Comments
 (0)