Skip to content

Commit 7aa4ad2

Browse files
Merge pull request #131 from dutchdronesquad/release/v1.3.0
Release v1.3.0
2 parents 3aa1350 + ae9af8c commit 7aa4ad2

Some content is hidden

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

47 files changed

+1014
-470
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
22
github: klaasnicolaas
3+
ko-fi: klaasnicolaas

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ version-resolver:
5858
template: |
5959
## What's changed
6060
61+
_To receive a notification on new releases, click on **Watch** > **Custom** > **Releases** on the top._
62+
6163
$CHANGES
6264
6365
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
"automerge": true
2929
}
3030
]
31-
}
31+
}

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: ⤵️ Check out code from GitHub
25-
uses: actions/checkout@v4.1.7
25+
uses: actions/checkout@v4.2.2
2626
- name: 🏗 Set up Poetry
2727
run: pipx install poetry
2828
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
2929
id: python
30-
uses: actions/setup-python@v5.1.1
30+
uses: actions/setup-python@v5.4.0
3131
with:
3232
python-version: ${{ env.DEFAULT_PYTHON }}
3333
cache: "poetry"

.github/workflows/labels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
pull-requests: write
1919
steps:
2020
- name: ⤵️ Check out code from GitHub
21-
uses: actions/checkout@v4.1.7
21+
uses: actions/checkout@v4.2.2
2222
- name: 🚀 Run Label Syncer
2323
uses: micnncim/action-label-syncer@v1.3.0
2424
env:

.github/workflows/linting.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
name: Linting
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
push:
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
DEFAULT_PYTHON: "3.11"
12+
13+
jobs:
14+
ruff:
15+
name: Ruff
16+
runs-on: ubuntu-latest
17+
steps:
18+
- 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
25+
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
34+
- name: 🚀 Run ruff linter
35+
run: poetry run ruff check --output-format=github .
36+
- name: 🚀 Run ruff formatter
37+
run: poetry run ruff format --check .
38+
39+
pre-commit-hooks:
40+
name: pre-commit-hooks
41+
runs-on: ubuntu-latest
42+
steps:
43+
- 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
50+
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
59+
- name: 🚀 Check Python AST
60+
run: poetry run pre-commit run check-ast --all-files
61+
- name: 🚀 Check for case conflicts
62+
run: poetry run pre-commit run check-case-conflict --all-files
63+
- name: 🚀 Check docstring is first
64+
run: poetry run pre-commit run check-docstring-first --all-files
65+
- name: 🚀 Check JSON files
66+
run: poetry run pre-commit run check-json --all-files
67+
- name: 🚀 Check YAML files
68+
run: poetry run pre-commit run check-yaml --all-files
69+
- name: 🚀 Detect Private Keys
70+
run: poetry run pre-commit run detect-private-key --all-files
71+
- name: 🚀 Check End of Files
72+
run: poetry run pre-commit run end-of-file-fixer --all-files
73+
- name: 🚀 Trim Trailing Whitespace
74+
run: poetry run pre-commit run trailing-whitespace --all-files

.github/workflows/release-drafter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
pull-requests: read
1919
steps:
2020
- name: 🚀 Run Release Drafter
21-
uses: release-drafter/release-drafter@v6.0.0
21+
uses: release-drafter/release-drafter@v6.1.0
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rhfest.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: RHFest
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
schedule:
10+
- cron: "0 0 * * *" # Every day at midnight
11+
12+
jobs:
13+
validation:
14+
name: Validation
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: ⤵️ Check out code from GitHub
18+
uses: actions/checkout@v4.2.2
19+
20+
- name: 🚀 Run RHFest validation
21+
uses: docker://ghcr.io/rotorhazard/rhfest-action:v1.2.1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
__pycache__
33
.cache
44
site
5+
.ruff_cache
56

67
# Files to ignore
7-
.python-version
8+
.python-version

.pre-commit-config.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: ruff-check
6+
name: 🐶 Ruff Linter
7+
language: system
8+
types: [python]
9+
entry: poetry run ruff check --fix
10+
require_serial: true
11+
stages: [pre-commit, pre-push, manual]
12+
- id: ruff-format
13+
name: 🐶 Ruff Formatter
14+
language: system
15+
types: [python]
16+
entry: poetry run ruff format
17+
require_serial: true
18+
stages: [pre-commit, pre-push, manual]
19+
- id: check-ast
20+
name: 🐍 Check Python AST
21+
language: system
22+
types: [python]
23+
entry: poetry run check-ast
24+
- id: check-case-conflict
25+
name: 🔠 Check for case conflicts
26+
language: system
27+
entry: poetry run check-case-conflict
28+
- id: check-docstring-first
29+
name: ℹ️ Check docstring is first
30+
language: system
31+
types: [python]
32+
entry: poetry run check-docstring-first
33+
- id: check-json
34+
name: { Check JSON files
35+
language: system
36+
types: [json]
37+
entry: poetry run check-json
38+
- id: check-yaml
39+
name: ✅ Check YAML files
40+
language: system
41+
types: [yaml]
42+
entry: poetry run check-yaml
43+
- id: detect-private-key
44+
name: 🕵️ Detect Private Keys
45+
language: system
46+
types: [text]
47+
entry: poetry run detect-private-key
48+
- id: end-of-file-fixer
49+
name: ⮐ Fix End of Files
50+
language: system
51+
types: [text]
52+
entry: poetry run end-of-file-fixer
53+
stages: [pre-commit, pre-push, manual]
54+
- id: no-commit-to-branch
55+
name: 🛑 Don't commit to main branch
56+
language: system
57+
entry: poetry run no-commit-to-branch
58+
pass_filenames: false
59+
always_run: true
60+
args:
61+
- --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
68+
- id: trailing-whitespace
69+
name: ✄ Trim Trailing Whitespace
70+
language: system
71+
types: [text]
72+
entry: poetry run trailing-whitespace-fixer
73+
stages: [pre-commit, pre-push, manual]
74+
- id: rhfest
75+
name: 🎉 Check RHFest
76+
language: docker_image
77+
entry: ghcr.io/rotorhazard/rhfest-action:latest

0 commit comments

Comments
 (0)