Skip to content

Commit 1bcaab7

Browse files
authored
chore: v0.1.12
Dev 0.1.12
2 parents e26eb97 + e48dc96 commit 1bcaab7

97 files changed

Lines changed: 10327 additions & 839 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
__pycache__/
2+
*.pyc
3+
*.pyo
4+
*.dist-info
5+
*.egg-info
6+
.env
7+
.vscode/
8+
.idea/
9+
.tests/
10+
build/
11+
.dist/
12+
.cache/

.github/workflows/linter.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ jobs:
4848
# - uses: stefanzweifel/git-auto-commit-action@v6
4949
# with:
5050
# commit_message: "style: style fixes by ruff and autoformatting by black"
51-

.github/workflows/package_and_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ jobs:
165165
--create-plugin-repo
166166
--github-token ${{ secrets.GITHUB_TOKEN }}
167167
--osgeo-username ${{ secrets.OSGEO_USER }}
168-
--osgeo-password ${{ secrets.OSGEO_PASSWORD }}
168+
--osgeo-password ${{ secrets.OSGEO_PASSWORD }}

.github/workflows/tester.yml

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- dev*
78
paths:
89
- '**.py'
910
- .github/workflows/tester.yml
@@ -45,38 +46,47 @@ jobs:
4546
- name: Run Unit tests
4647
run: pytest -p no:qgis tests/unit/
4748

48-
# test-qgis:
49-
# runs-on: ubuntu-latest
50-
51-
# container:
52-
# image: qgis/qgis:release-3_28
53-
# env:
54-
# CI: true
55-
# DISPLAY: ":1"
56-
# MUTE_LOGS: true
57-
# NO_MODALS: 1
58-
# PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:."
59-
# QT_QPA_PLATFORM: "offscreen"
60-
# WITH_PYTHON_PEP: false
61-
# options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory
62-
63-
# steps:
64-
# - name: Get source code
65-
# uses: actions/checkout@v6
66-
67-
# - name: Print QGIS version
68-
# run: qgis --version
69-
70-
# - name: Setup plugin
71-
# run: qgis_setup.sh loopstructural
72-
73-
74-
# - name: Install Python requirements
75-
# run: |
76-
# python3 -m pip install -U pip setuptools wheel
77-
# python3 -m pip install -U -r requirements/testing.txt
78-
79-
# - name: Run Unit tests
80-
# run: |
81-
# Xvfb :1 &
82-
# python3 -m pytest tests/qgis/
49+
test-qgis:
50+
runs-on: ubuntu-latest
51+
52+
container:
53+
image: qgis/qgis:release-3_28
54+
env:
55+
CI: true
56+
DISPLAY: ":1"
57+
MUTE_LOGS: true
58+
NO_MODALS: "1"
59+
PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:."
60+
QT_QPA_PLATFORM: "offscreen"
61+
WITH_PYTHON_PEP: "false"
62+
options: -v /tmp/.X11-unix:/tmp/.X11-unix -v ${{ github.workspace }}:/tests_directory
63+
64+
steps:
65+
- name: Get source code
66+
uses: actions/checkout@v6
67+
68+
- name: Print QGIS version
69+
run: qgis --version
70+
71+
- name: Install system packages (GDAL/PROJ/GEOS build deps)
72+
run: |
73+
set -e
74+
apt-get update
75+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
76+
build-essential gdal-bin libgdal-dev proj-bin libproj-dev libgeos-dev python3-dev xvfb
77+
rm -rf /var/lib/apt/lists/*
78+
79+
- name: Setup plugin
80+
run: bash /tests_directory/scripts/qgis_setup.sh loopstructural
81+
82+
83+
- name: Install Python requirements
84+
run: |
85+
python3 -m pip install -U pip setuptools wheel
86+
python3 -m pip install -U -r requirements/testing.txt
87+
python3 -m pip install -U -r /tests_directory/loopstructural/requirements.txt
88+
89+
- name: Run Unit tests
90+
run: |
91+
Xvfb :1 &
92+
python3 -m pytest tests/qgis/

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ repos:
2727
- --target-version=py39
2828

2929

30+
# Local hook to forbid print statements in Python files (excluding tests)
31+
- repo: local
32+
hooks:
33+
- id: forbid-print-statements
34+
name: Forbid print statements
35+
entry: grep -nH -E '\bprint\s*\('
36+
language: system
37+
types: [python]
38+
exclude: 'tests/'
39+
pass_filenames: true
40+
description: 'Fail if print statements are found in Python files.'
41+
42+
3043

3144
ci:
3245
autoupdate_schedule: quarterly

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
".": "0.0.1",
33
"loopstructural": "0.1.11"
4-
}
4+
}

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '3.8'
2+
3+
services:
4+
qgis_test:
5+
image: qgis/qgis:release-3_28
6+
environment:
7+
- CI=true
8+
- DISPLAY=:99
9+
- MUTE_LOGS=true
10+
- NO_MODALS=1
11+
- PYTHONPATH=/usr/share/qgis/python/plugins:/usr/share/qgis/python:.
12+
- QT_QPA_PLATFORM=offscreen
13+
- WITH_PYTHON_PEP=false
14+
volumes:
15+
- ./:/tests_directory
16+
- /tmp/.X11-unix:/tmp/.X11-unix
17+
tty: true
18+
entrypoint: ["tail", "-f", "/dev/null"]

docs/usage/3d-modeling.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ In LoopStructural stratigraphic surfaces can be modelled using implicit function
2525

2626
### Fault modelling
2727
Faults are modelled in LoopStructural by building three implicit functions defining the fault surface, fault slip vector and the fault extent. Combined with a parametric representation of the fault displacement within these coordinates a kinematic model.
28-
29-
30-

docs/usage/install/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
1. Restart QGIS if necessary.
4141
2. Confirm that the plugin is available under the **Plugins** menu.
4242

43-
You are now ready to use the plugin on your Linux system!
43+
You are now ready to use the plugin on your Linux system!

docs/usage/install/macosx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
```bash
1313
brew install qgis
1414
```
15-
15+
1616
### Step 2: Install Dependencies Using pip
1717
1. Ensure you have `pip` installed. If not, install it using:
1818
```bash
@@ -33,4 +33,4 @@
3333
1. Restart QGIS if necessary.
3434
2. Confirm that the plugin is available under the **Plugins** menu.
3535

36-
You are now ready to use the plugin on your MacOS system!
36+
You are now ready to use the plugin on your MacOS system!

0 commit comments

Comments
 (0)