Skip to content

Commit b29f496

Browse files
Merge pull request #489 from AndreWohnsland/dev
Add sumup payment
2 parents 6e6b121 + 1bfea59 commit b29f496

File tree

149 files changed

+3729
-1546
lines changed

Some content is hidden

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

149 files changed

+3729
-1546
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# apply alphabetic, explicit import sorting (new hash)
22
9b553ce9f06f5fcd9584df7d17248bd9351a1b9b
33
# biome linting switch (from eslint)
4-
3a19c942d54c6263c936aea87d0b38ec119925bb
4+
3a19c942d54c6263c936aea87d0b38ec119925bb
5+
# ty linting changes
6+
7fe31489c1c07250de4e4efa5b7e3daafae48136

.github/workflows/code-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.11", "3.13"]
16+
python-version: ["3.13"]
1717
steps:
1818
- name: ⤵️ Check out code from GitHub
1919
uses: actions/checkout@v6
@@ -24,26 +24,26 @@ jobs:
2424
- name: 🔍 Lint with ruff
2525
run: uv run ruff check src
2626

27-
mypy:
27+
ty:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
python-version: ["3.11", "3.13"]
31+
python-version: ["3.13"]
3232
steps:
3333
- name: ⤵️ Check out code from GitHub
3434
uses: actions/checkout@v6
3535
- name: Install the latest version of uv using Python ${{ matrix.python-version }}
3636
uses: astral-sh/setup-uv@v7
3737
with:
3838
python-version: ${{ matrix.python-version }}
39-
- name: 🔍 Lint with MyPy
40-
run: uv run --extra v1 mypy src
39+
- name: 🔍 Type Checking with ty
40+
run: uv run --extra v1 ty check src
4141

4242
pytest:
4343
runs-on: ubuntu-latest
4444
strategy:
4545
matrix:
46-
python-version: ["3.11", "3.13"]
46+
python-version: ["3.13"]
4747
steps:
4848
- name: ⤵️ Check out code from GitHub
4949
uses: actions/checkout@v6

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ default_install_hook_types:
66
exclude: ^(.*(\.?venv.*)/)
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.12.10
9+
rev: v0.15.0
1010
hooks:
1111
- id: ruff-format
1212
name: ☕️ Use Ruff to format code
1313
- id: ruff-check
1414
name: ☕️ Use Ruff to lint code
1515
args: [--fix]
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v5.0.0
17+
rev: v6.0.0
1818
hooks:
1919
- id: check-json
2020
name: ☕️ Check for JSON syntax errors
2121
- repo: https://github.com/koalaman/shellcheck-precommit
22-
rev: v0.10.0
22+
rev: v0.11.0
2323
hooks:
2424
- id: shellcheck
2525
name: ☕️ Ensure Shell Scripts are good with ShellCheck

.sonarcloud.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
sonar.python.version=3.11
22
sonar.cpd.exclusions=**/*.stories.ts
3+
sonar.issue.ignore.multicriteria=e1
4+
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S8415
5+
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.py

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"source.organizeImports": "explicit"
2727
}
2828
},
29+
"ruff.configuration": "pyproject.toml",
2930
"[typescript]": {
3031
"editor.defaultFormatter": "biomejs.biome",
3132
"editor.codeActionsOnSave": {

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pull requests are the best way to propose changes to the codebase:
2222
4. Ensure the test suite passes.
2323
5. Run & Check UI changes to make sure everything works and looks good.
2424
6. Use pyqt ui files where possible (see [dev notes](./docs/.devnotes.md#qt-template-files))
25-
7. Make sure your code lints (mypy & ruff).
25+
7. Make sure your code lints (ty & ruff).
2626
8. Issue that pull request!
2727

2828
## You can use AI tools BUT

docs/.devnotes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ echo "Waiting for WiFi"
122122
sleep 10
123123
export QT_SCALE_FACTOR=1
124124
cd ~/CocktailBerry/
125-
sudo python runme.py
125+
uv sync --inexact --extra v1
126+
sudo -E .venv/bin/python runme.py
126127
# cocktail.desktop at "/etc/xdg/autostart/"
127128
[Desktop Entry]
128129
Type=Application
@@ -256,7 +257,7 @@ Example for powershell:
256257

257258
```powershell
258259
$Env:QT_SCALE_FACTOR = "2"
259-
python runme.py
260+
uv run runme.py
260261
```
261262

262263
# Outdated Section

docs/addons.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ Here you will find the ressources to get started.
8080
### Set Up
8181

8282
First, you should clone the latest version of CocktailBerry in your development environment.
83-
Install all needed dependencies, either over pip or with poetry (recommended).
83+
Install all needed dependencies with `uv sync` (add `--extra v1` for the Qt version).
8484
Usually **one** Python file is used per addon, placed in the `addons` folder in the CocktailBerry project.
8585
Files within this folder will not be tracked by git.
8686

8787
!!! tip "Use the CLI"
8888
It's super easy to create a skeleton addon file with the [CLI command](commands.md#creating-addon-base-file)!
8989
Just run:
90-
90+
9191
```bash
92-
python runme.py create-addon "Your Addon Name"
92+
uv run runme.py create-addon "Your Addon Name"
9393
```
9494

9595
This will create a file with the needed structure in the addons folder.

docs/commands.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,7 @@ uv run runme.py remove-ap [OPTIONS]
251251
# --ssid SSID Name of the AP [default: CocktailBerry]
252252
# --help Show help
253253
```
254+
255+
## Virtual Keyboard Commands
256+
257+
For managing the virtual keyboard on the Raspberry Pi when using the web interface (v2), see the [web documentation](web.md#enable-the-virtual-keyboard) for the `add-virtual-keyboard` and `remove-virtual-keyboard` commands.

docs/faq.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ In case of any issues related to the GUI (like window positioning, overlap), ple
5555
### Which Raspberry Pi OS to Use
5656

5757
Please use the latest Raspberry Pi Desktop OS, currently this is Raspberry Pi OS with desktop in 64 bit, also known as Debian 13 or Trixie.
58-
These OS run Python 3.11/3.13, which is the current mandatory Version of Python to run CocktailBerry.
58+
CocktailBerry requires **Python 3.13 or newer** (Trixie ships with Python 3.13).
5959
Older OS may work, but are not supported.
6060

6161
### Will Older Python Version Work
6262

63-
Not with the current Version of CocktailBerry.
64-
Best is to use the specified Python version (or newer).
65-
Older version may work, but are not supported.
66-
Generally, it is always recommended to use a fresh setup raspberry for the best experience.
63+
CocktailBerry requires **Python 3.13 or newer**.
64+
Older versions are not supported.
65+
Generally, it is always recommended to use a fresh Raspberry Pi OS setup for the best experience.
6766

6867
### How to get Updates
6968

0 commit comments

Comments
 (0)