diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000..ab9fc31 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,16 @@ +# The mechanical house-style rules: SPDX header, no Sphinx roles in +# docstrings, no link to the .github repo from a page, no README badges or +# status banner. Pull requests check the changed files; a manual run checks +# every file. Paths that aren't ours go in .style-exclude. +name: Style + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + style: + uses: PyDevices/.github/.github/workflows/reusable-style-check.yml@publishing-v20 diff --git a/p4a_app/board_config_tv.py b/p4a_app/board_config_tv.py index 2e6d345..de500ee 100644 --- a/p4a_app/board_config_tv.py +++ b/p4a_app/board_config_tv.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """Android TV / Fire OS framebuffer env for packaged ``board_config``. diff --git a/p4a_app/main.py b/p4a_app/main.py index 573d89e..4d74eb9 100644 --- a/p4a_app/main.py +++ b/p4a_app/main.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """Application entry point for the PyDevices Android template.""" diff --git a/p4a_app/services/mediaplayback.py b/p4a_app/services/mediaplayback.py index 9f995d4..78860db 100644 --- a/p4a_app/services/mediaplayback.py +++ b/p4a_app/services/mediaplayback.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """Keep-alive entry for the mediaPlayback foreground service. diff --git a/p4a_recipes/pip/__init__.py b/p4a_recipes/pip/__init__.py index a8bcacb..843cd80 100644 --- a/p4a_recipes/pip/__init__.py +++ b/p4a_recipes/pip/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pip (PyPI wheel for on-device installs).""" diff --git a/p4a_recipes/pydevices-audiodsp/__init__.py b/p4a_recipes/pydevices-audiodsp/__init__.py index ac9c705..80046e9 100644 --- a/p4a_recipes/pydevices-audiodsp/__init__.py +++ b/p4a_recipes/pydevices-audiodsp/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe for the pydevices-audiodsp native wheel.""" diff --git a/p4a_recipes/pydevices-audioeffects/__init__.py b/p4a_recipes/pydevices-audioeffects/__init__.py index 8ac7ef0..b5385bc 100644 --- a/p4a_recipes/pydevices-audioeffects/__init__.py +++ b/p4a_recipes/pydevices-audioeffects/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-audioeffects (import audioeffects). diff --git a/p4a_recipes/pydevices-audioinstruments/__init__.py b/p4a_recipes/pydevices-audioinstruments/__init__.py index 682e5c5..778f1bf 100644 --- a/p4a_recipes/pydevices-audioinstruments/__init__.py +++ b/p4a_recipes/pydevices-audioinstruments/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-audioinstruments (import audioinstruments). diff --git a/p4a_recipes/pydevices-desktop/__init__.py b/p4a_recipes/pydevices-desktop/__init__.py index 1474925..0e80aa2 100644 --- a/p4a_recipes/pydevices-desktop/__init__.py +++ b/p4a_recipes/pydevices-desktop/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-desktop (ships board_config/usdl2).""" diff --git a/p4a_recipes/pydevices-palettes/__init__.py b/p4a_recipes/pydevices-palettes/__init__.py index c9af880..0367a41 100644 --- a/p4a_recipes/pydevices-palettes/__init__.py +++ b/p4a_recipes/pydevices-palettes/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-palettes (import palettes).""" diff --git a/p4a_recipes/pydevices-pdwidgets/__init__.py b/p4a_recipes/pydevices-pdwidgets/__init__.py index 1e52cca..43b8a9f 100644 --- a/p4a_recipes/pydevices-pdwidgets/__init__.py +++ b/p4a_recipes/pydevices-pdwidgets/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-pdwidgets (import pdwidgets).""" diff --git a/p4a_recipes/pydevices-pygraphics/__init__.py b/p4a_recipes/pydevices-pygraphics/__init__.py index ac64881..0ab284b 100644 --- a/p4a_recipes/pydevices-pygraphics/__init__.py +++ b/p4a_recipes/pydevices-pygraphics/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-pygraphics (import pygraphics).""" diff --git a/p4a_recipes/pydevices/__init__.py b/p4a_recipes/pydevices/__init__.py index e3c703a..4f5bb14 100644 --- a/p4a_recipes/pydevices/__init__.py +++ b/p4a_recipes/pydevices/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices. diff --git a/p4a_recipes/pydeviceslvgl/__init__.py b/p4a_recipes/pydeviceslvgl/__init__.py index 24ff52a..eedd394 100644 --- a/p4a_recipes/pydeviceslvgl/__init__.py +++ b/p4a_recipes/pydeviceslvgl/__init__.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android recipe: pydevices-lvgl (TestPyPI native Android wheel). diff --git a/scripts/check_recipe_pins.py b/scripts/check_recipe_pins.py index 79a2beb..fa72fc0 100755 --- a/scripts/check_recipe_pins.py +++ b/scripts/check_recipe_pins.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """Verify every pinned p4a_recipes/*/__init__.py version resolves on TestPyPI. diff --git a/scripts/p4a_hook.py b/scripts/p4a_hook.py index 328ae69..4b69a7c 100644 --- a/scripts/p4a_hook.py +++ b/scripts/p4a_hook.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """python-for-android hooks (wired in via ``p4a.hook`` in buildozer.spec). diff --git a/scripts/stale_dist.py b/scripts/stale_dist.py index e842ec2..751148e 100644 --- a/scripts/stale_dist.py +++ b/scripts/stale_dist.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2026 Brad Barnett +# # SPDX-License-Identifier: MIT """Keep a build from packaging an older build's Python packages.