14 Commits

Author SHA1 Message Date
2a96a13fb8 pre-commit.Dockerfile: add all files in a single COPY (#5562)
All checks were successful
continuous-integration/drone/push Build is passing
also removed comment as it is no longer relevant

Signed-off-by: Filip Kobierski <fkobi@fsfe.org>

I recommend side-by-side diff for reviewing the changes

Reviewed-on: #5562
Reviewed-by: delliott <delliott@fsfe.org>
Co-authored-by: Filip Kobierski <fkobi@fsfe.org>
Co-committed-by: Filip Kobierski <fkobi@fsfe.org>
2025-12-16 18:38:12 +00:00
462a7f78a2 pre-commit.Dockerfile: do not specify a shell in the entrypoint
Signed-off-by: Filip Kobierski <fkobi@fsfe.org>
2025-12-15 10:37:41 +01:00
d7f5faf3e5 pre-commit.Dockerfile: remove explicit :latest tag (#5561)
All checks were successful
continuous-integration/drone/push Build is passing
it's implicit and without it it's easier to read

Reviewed-on: #5561
Reviewed-by: delliott <delliott@fsfe.org>
Co-authored-by: Filip Kobierski <fkobi@fsfe.org>
Co-committed-by: Filip Kobierski <fkobi@fsfe.org>
2025-12-14 12:00:59 +00:00
09b117d306 Migrate pre-commit.entrypoint.sh to POSIX sh (#5540)
All checks were successful
continuous-integration/drone/push Build is passing
The script was basically posix with a bashism.
POSIX sh is lighter and thus better.

Reviewed-on: #5540
Reviewed-by: delliott <delliott@fsfe.org>
2025-12-11 09:06:57 +00:00
b1e2458b71 remove trailing whitespaces
All checks were successful
continuous-integration/drone/push Build is passing
initially removed by fkobi in #5547
2025-12-05 06:33:47 +01:00
5605a7853b pre-commit.Dockerfile: do not reinstall essential packages (#5545)
All checks were successful
continuous-integration/drone/push Build is passing
Gentoo calls them @system, Debian calls them essential.
These provide the basic system functionality and it can be assumed that they are always present.

Removing them from here keeps the dockerfile cleaner & the build process faster.

I've left perl-base in there as it's pretty heavy and Gentoo and Alpine do not install it by default

Signed-off-by: Filip Kobierski <fkobi@fsfe.org>

Reviewed-on: #5545
Reviewed-by: delliott <delliott@fsfe.org>
Co-authored-by: Filip Kobierski <fkobi@fsfe.org>
Co-committed-by: Filip Kobierski <fkobi@fsfe.org>
2025-12-04 16:08:48 +00:00
fdbc88a850 fix/caching (#5494)
All checks were successful
continuous-integration/drone/push Build is passing
fix some stuff not being cached, and add test to catch caching regressions.

Test takes quite a while to run, not sure it is a good idea?

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5494
2025-11-13 18:13:59 +00:00
b9caf021a4 fix/paragraphs (#5431)
All checks were successful
continuous-integration/drone/push Build is passing
Currently implements both a format hook to remove white-space paragraphs, and a check to make their existence a critical failure.

In the end may implement only one or none of these, subject to major design changes.

Solves #5409

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5431
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-10-30 12:34:42 +00:00
072130a077 feat/caching (#5333)
All checks were successful
continuous-integration/drone/push Build is passing
Enable the building and pushing of docker containers on master, and then using them as a cache base in prs.

This should massively reduce the build times, and the load we are placing on other projects servers.

Depends on #5330

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5333
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-10-08 13:30:56 +00:00
9adbac5f6c feat: mount source code instead of copying into images (#5330)
All checks were successful
continuous-integration/drone/push Build is passing
This should mean we can used cached docker images properly in future.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5330
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-10-08 11:27:30 +00:00
b390c5472e feat/php-linter (#5321)
All checks were successful
continuous-integration/drone/push Build is passing
At least helps with #5297

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5321
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-09-24 18:13:46 +00:00
c4074733ca ci: use at least a pinned major debian version, so we do not get caugt by silnet major version changes (#5290)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5290
2025-09-03 15:33:36 +00:00
f04655b113 build: streamline and update python deps (#5264)
All checks were successful
continuous-integration/drone/push Build is passing
- Update deps to latest versions
- stop using tight constraints and instead just use loose ones and commit the uv lockfile
- Greater reproducibility, and much easier to bump deps in future.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5264
2025-08-29 12:16:12 +00:00
1a05dee2f6 build: use lefthook for pre-commit (#5248)
All checks were successful
continuous-integration/drone/push Build is passing
update docs
update nix-shell to auto install
rework custom pre-commit hooks to integrate better
add dockerfile for lefthook and integrate into drone
add some more hooks for formatting and linting some files

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5248
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-08-27 15:22:06 +00:00