Skip to content

Commit 23d82e7

Browse files
Merge pull request #251 from dutchdronesquad/release/v1.3.2
Release v1.3.2
2 parents 754eabc + a57f3b9 commit 23d82e7

File tree

22 files changed

+1198
-1477
lines changed

22 files changed

+1198
-1477
lines changed

.github/renovate.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
"commitMessagePrefix": "⬆️",
1313
"packageRules": [
1414
{
15-
"matchManagers": ["poetry"],
15+
"matchManagers": ["pep621"],
1616
"addLabels": ["python"]
1717
},
18+
{
19+
"matchManagers": ["pep621"],
20+
"matchDepTypes": ["tool.uv.dependency-groups"],
21+
"rangeStrategy": "pin"
22+
},
1823
{
1924
"matchManagers": ["github-actions"],
2025
"addLabels": ["github_actions"],
@@ -23,7 +28,7 @@
2328
"versioning": "regex:^v(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$"
2429
},
2530
{
26-
"matchManagers": ["github-actions", "poetry"],
31+
"matchManagers": ["github-actions", "pep621"],
2732
"matchUpdateTypes": ["minor", "patch"],
2833
"automerge": true
2934
}

.github/workflows/deploy.yaml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,24 @@ on:
1313
release:
1414
types: [published]
1515

16-
env:
17-
DEFAULT_PYTHON: "3.11"
16+
permissions:
17+
contents: read
1818

1919
jobs:
2020
build-docs:
2121
name: Build documentation
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: ⤵️ Check out code from GitHub
25-
uses: actions/checkout@v4.2.2
26-
- name: 🏗 Set up Poetry
27-
run: pipx install poetry
28-
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
29-
id: python
30-
uses: actions/setup-python@v5.4.0
31-
with:
32-
python-version: ${{ env.DEFAULT_PYTHON }}
33-
cache: "poetry"
34-
- name: 🏗 Install workflow dependencies
35-
run: |
36-
poetry config virtualenvs.create true
37-
poetry config virtualenvs.in-project true
38-
- name: 🏗 Install dependencies
39-
run: poetry install --no-interaction
25+
uses: actions/checkout@v5.0.0
26+
- name: 🏗 Set up UV
27+
uses: astral-sh/setup-uv@v7.1.3
28+
- name: 🏗 Install project dependencies
29+
run: uv sync --group docs
4030
- name: 🏗 Build documentation
41-
run: poetry run mkdocs build
31+
run: uv run mkdocs build
4232
- name: ⬆️ Upload pages artifacts
43-
uses: actions/upload-pages-artifact@v3.0.1
33+
uses: actions/upload-pages-artifact@v4.0.0
4434
with:
4535
path: site
4636

.github/workflows/linting.yaml

Lines changed: 27 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,65 +10,52 @@ on:
1010
env:
1111
DEFAULT_PYTHON: "3.11"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
ruff:
1518
name: Ruff
1619
runs-on: ubuntu-latest
1720
steps:
1821
- name: ⤵️ Check out code from GitHub
19-
uses: actions/checkout@v4.2.2
20-
- name: 🏗 Set up Poetry
21-
run: pipx install poetry
22-
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
23-
id: python
24-
uses: actions/setup-python@v5.4.0
22+
uses: actions/checkout@v5.0.0
23+
- name: 🏗 Set up UV
24+
uses: astral-sh/setup-uv@v7.1.3
2525
with:
26-
python-version: ${{ env.DEFAULT_PYTHON }}
27-
cache: "poetry"
28-
- name: 🏗 Install workflow dependencies
29-
run: |
30-
poetry config virtualenvs.create true
31-
poetry config virtualenvs.in-project true
32-
- name: 🏗 Install Python dependencies
33-
run: poetry install --no-interaction
26+
enable-cache: true
27+
- name: 🏗 Install project dependencies
28+
run: uv sync --all-extras --dev
3429
- name: 🚀 Run ruff linter
35-
run: poetry run ruff check --output-format=github .
30+
run: uv run ruff check --output-format=github .
3631
- name: 🚀 Run ruff formatter
37-
run: poetry run ruff format --check .
32+
run: uv run ruff format --check .
3833

39-
pre-commit-hooks:
40-
name: pre-commit-hooks
34+
prek-hooks:
35+
name: prek-hooks
4136
runs-on: ubuntu-latest
4237
steps:
4338
- name: ⤵️ Check out code from GitHub
44-
uses: actions/checkout@v4.2.2
45-
- name: 🏗 Set up Poetry
46-
run: pipx install poetry
47-
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
48-
id: python
49-
uses: actions/setup-python@v5.4.0
39+
uses: actions/checkout@v5.0.0
40+
- name: 🏗 Set up UV
41+
uses: astral-sh/setup-uv@v7.1.3
5042
with:
51-
python-version: ${{ env.DEFAULT_PYTHON }}
52-
cache: "poetry"
53-
- name: 🏗 Install workflow dependencies
54-
run: |
55-
poetry config virtualenvs.create true
56-
poetry config virtualenvs.in-project true
57-
- name: 🏗 Install Python dependencies
58-
run: poetry install --no-interaction
43+
enable-cache: true
44+
- name: 🏗 Install project dependencies
45+
run: uv sync --all-extras --dev
5946
- name: 🚀 Check Python AST
60-
run: poetry run pre-commit run check-ast --all-files
47+
run: uv run prek run check-ast --all-files
6148
- name: 🚀 Check for case conflicts
62-
run: poetry run pre-commit run check-case-conflict --all-files
49+
run: uv run prek run check-case-conflict --all-files
6350
- name: 🚀 Check docstring is first
64-
run: poetry run pre-commit run check-docstring-first --all-files
51+
run: uv run prek run check-docstring-first --all-files
6552
- name: 🚀 Check JSON files
66-
run: poetry run pre-commit run check-json --all-files
53+
run: uv run prek run check-json --all-files
6754
- name: 🚀 Check YAML files
68-
run: poetry run pre-commit run check-yaml --all-files
55+
run: uv run prek run check-yaml --all-files
6956
- name: 🚀 Detect Private Keys
70-
run: poetry run pre-commit run detect-private-key --all-files
57+
run: uv run prek run detect-private-key --all-files
7158
- name: 🚀 Check End of Files
72-
run: poetry run pre-commit run end-of-file-fixer --all-files
59+
run: uv run prek run end-of-file-fixer --all-files
7360
- name: 🚀 Trim Trailing Whitespace
74-
run: poetry run pre-commit run trailing-whitespace --all-files
61+
run: uv run prek run trailing-whitespace --all-files

.github/workflows/release-drafter.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ on:
99
- develop
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
update_release_draft:
1417
name: ✏️ Draft release
1518
runs-on: ubuntu-latest
1619
permissions:
17-
contents: write
18-
pull-requests: read
20+
contents: write # To create a GitHub release
21+
pull-requests: write # To add label to PR
1922
steps:
2023
- name: 🚀 Run Release Drafter
2124
uses: release-drafter/release-drafter@v6.1.0

.github/workflows/rhfest.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ on:
99
schedule:
1010
- cron: "0 0 * * *" # Every day at midnight
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
validation:
1417
name: Validation
1518
runs-on: ubuntu-latest
1619
steps:
1720
- name: ⤵️ Check out code from GitHub
18-
uses: actions/checkout@v4.2.2
19-
21+
uses: actions/checkout@v5.0.0
2022
- name: 🚀 Run RHFest validation
21-
uses: docker://ghcr.io/rotorhazard/rhfest-action:v2.0.0
23+
uses: docker://ghcr.io/rotorhazard/rhfest-action:v3.0.0
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ on:
1010
- .github/labels.yml
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
labels:
1518
name: ♻️ Sync labels
1619
runs-on: ubuntu-latest
1720
permissions:
18-
pull-requests: write
21+
contents: read
22+
issues: write
1923
steps:
2024
- name: ⤵️ Check out code from GitHub
21-
uses: actions/checkout@v4.2.2
25+
uses: actions/checkout@v5.0.0
2226
- name: 🚀 Run Label Syncer
2327
uses: micnncim/action-label-syncer@v1.3.0
2428
env:

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Folders to ignore
2-
__pycache__
3-
.cache
1+
# Ignore files
2+
.env
3+
4+
# Ignore folders
5+
node_modules
46
site
7+
.venv
8+
.cache
59
.ruff_cache
6-
7-
# Files to ignore
8-
.python-version
10+
__pycache__

.pre-commit-config.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,71 +6,65 @@ repos:
66
name: 🐶 Ruff Linter
77
language: system
88
types: [python]
9-
entry: poetry run ruff check --fix
9+
entry: uv run ruff check --fix
1010
require_serial: true
11-
stages: [pre-commit, pre-push, manual]
11+
stages: [commit, push, manual]
1212
- id: ruff-format
1313
name: 🐶 Ruff Formatter
1414
language: system
1515
types: [python]
16-
entry: poetry run ruff format
16+
entry: uv run ruff format
1717
require_serial: true
18-
stages: [pre-commit, pre-push, manual]
18+
stages: [commit, push, manual]
1919
- id: check-ast
2020
name: 🐍 Check Python AST
2121
language: system
2222
types: [python]
23-
entry: poetry run check-ast
23+
entry: uv run check-ast
2424
- id: check-case-conflict
2525
name: 🔠 Check for case conflicts
2626
language: system
27-
entry: poetry run check-case-conflict
27+
entry: uv run check-case-conflict
2828
- id: check-docstring-first
2929
name: ℹ️ Check docstring is first
3030
language: system
3131
types: [python]
32-
entry: poetry run check-docstring-first
32+
entry: uv run check-docstring-first
3333
- id: check-json
3434
name: { Check JSON files
3535
language: system
3636
types: [json]
37-
entry: poetry run check-json
37+
entry: uv run check-json
3838
- id: check-yaml
3939
name: ✅ Check YAML files
4040
language: system
4141
types: [yaml]
42-
entry: poetry run check-yaml
42+
entry: uv run check-yaml
4343
- id: detect-private-key
4444
name: 🕵️ Detect Private Keys
4545
language: system
4646
types: [text]
47-
entry: poetry run detect-private-key
47+
entry: uv run detect-private-key
4848
- id: end-of-file-fixer
4949
name: ⮐ Fix End of Files
5050
language: system
5151
types: [text]
52-
entry: poetry run end-of-file-fixer
53-
stages: [pre-commit, pre-push, manual]
52+
entry: uv run end-of-file-fixer
53+
stages: [commit, push, manual]
5454
- id: no-commit-to-branch
5555
name: 🛑 Don't commit to main branch
5656
language: system
57-
entry: poetry run no-commit-to-branch
57+
entry: uv run no-commit-to-branch
5858
pass_filenames: false
5959
always_run: true
6060
args:
6161
- --branch=main
62-
- id: poetry
63-
name: 📜 Check pyproject with Poetry
64-
language: system
65-
entry: poetry check
66-
pass_filenames: false
67-
always_run: true
6862
- id: trailing-whitespace
6963
name: ✄ Trim Trailing Whitespace
7064
language: system
7165
types: [text]
72-
entry: poetry run trailing-whitespace-fixer
73-
stages: [pre-commit, pre-push, manual]
66+
entry: uv run trailing-whitespace-fixer
67+
stages: [commit, push, manual]
7468
- id: rhfest
7569
name: 🎉 Check RHFest
7670
language: system

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

0 commit comments

Comments
 (0)