36 Commits

Author SHA1 Message Date
2e6d244ef4 update internal forms
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-02 14:33:48 +01:00
8159a0bb0e feat/more-ruff (#5559)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5559
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-12-11 06:05:35 +00:00
4cd97fa78c ci/whitelisting (#5500)
All checks were successful
continuous-integration/drone/push Build is passing
Whitelist some common attributes/elements that should be localized.

This was done by making the whitelist a list of xpaths.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5500
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-11-18 08:22:42 +00:00
02a93d7a33 sort activities
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-04 11:10:11 +01:00
91ea1c1d5b honour activities enddate (#5454)
All checks were successful
continuous-integration/drone/push Build is passing
Don't include ended activities in the internal forms

Reviewed-on: #5454
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-committed-by: Tobias Diekershoff <tobiasd@fsfe.org>
2025-11-03 14:19:32 +00:00
b5256f8812 feat/strict-pyright (#5451)
All checks were successful
continuous-integration/drone/push Build is passing
- enable pyright strict mode
- fix the issues raised

This should make the build process cleaner and more resilient.
It should make it much easier to catch design flaws.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5451
Reviewed-by: tobiasd <tobiasd@fsfe.org>
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-11-03 08:53:49 +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
ab3da54d6a feat: ruff python docsting lints (#5444)
All checks were successful
continuous-integration/drone/push Build is passing
And add docstrings so all files are passing.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5444
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-10-30 09:39:39 +00:00
cba4a25036 feat: add source flag to use different folder as source for building sites (#5334)
All checks were successful
continuous-integration/drone/push Build is passing
I do not expect the flag to be used much, but it enforces better code design, and prevents implicitly relying on cwd.

Just a general code style improvement really.

Co-authored-by: Darragh Elliott <me@delliott.net>
Co-authored-by: tobiasd <tobiasd@fsfe.org>
Reviewed-on: #5334
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
2025-10-13 12:56:30 +00:00
f03b3c2c4c build: tests and more checks (#5268)
All checks were successful
continuous-integration/drone/push Build is passing
- add pytest
- add tests for all exposed lib functions
- Add a whole bunch more ruff checks and apply them

Benchmarking:

Before:
```
❯ hyperfine --runs 3 "uv run build --full"
Benchmark 1: uv run build --full
  Time (mean ± σ):     287.463 s ± 15.161 s    [User: 1573.732 s, System: 72.548 s]
  Range (min … max):   272.953 s … 303.201 s    3 runs
```

After
```
❯ hyperfine --runs 3 "uv run build --full"
Benchmark 1: uv run build --full
  Time (mean ± σ):     280.184 s ±  9.605 s    [User: 1557.788 s, System: 72.693 s]
  Range (min … max):   269.878 s … 288.886 s    3 runs
```

So we gain a few seconds, but that is all.

The main benefit is that we have better testing and more linting.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5268
2025-08-29 16:46:13 +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
Darragh Elliott
6be2a62421 build: move python source into subfolder to more properly deliniate
All checks were successful
continuous-integration/drone/pr Build is passing
rename from just build, to be more informative
2025-08-20 16:12:52 +00:00
6e2f476f5b internal forms
Some checks failed
continuous-integration/drone/push Build was killed
RC and PD form now have options for Individual costs for staffers
2025-07-28 13:13:18 +02:00
Darragh Elliott
998a6fd989 refactor: enable more ruff warnings, and then fix raised issues
All checks were successful
continuous-integration/drone/pr Build is passing
2025-07-27 16:26:39 +00:00
d75da92331 Update FSFE address
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-26 20:45:02 +02:00
6308506023 update internal form
All checks were successful
continuous-integration/drone/push Build is passing
adopt the autofill funcionality from the PD form also for thy RC form
2025-07-26 12:01:40 +02:00
c951b79be6 update internal form
All checks were successful
continuous-integration/drone/push Build is passing
adopt the autofill funcionality from the PD form also for thy RC form
2025-07-26 11:53:32 +02:00
632348b9c8 PD form (#5172)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5172
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-committed-by: Tobias Diekershoff <tobiasd@fsfe.org>
2025-07-24 11:50:20 +00:00
1964759e91 PD form update
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-22 15:43:19 +02:00
0f3846605d Added bank fees to list
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-11 14:52:41 +02:00
451a6df28d Update account list
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-08 23:29:41 +02:00
a0c19b1833 PD form functionality
All checks were successful
continuous-integration/drone/push Build is passing
if a other rate was added in the PD form, check the radio button automatically to use the other rate.
2025-07-07 15:10:01 +02:00
0e37c88daf updated pd form sources
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-15 06:36:45 +02:00
Darragh Elliott
ffefe38f41 feat: move internal activities file generation to internal folder
All checks were successful
continuous-integration/drone/pr Build is passing
no functional changes, but code slightly cleaner
also rework gitignores slightly to reflect site structure better
2025-05-17 15:48:33 +01:00
526687c289 Add two more categories
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-09 17:29:20 +02:00
8983635b8e small issue
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-24 15:12:02 +02:00
cbf6294d3b Add a few more categories
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-09 08:22:44 +02:00
7e9b95c40e Update category IDs
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-19 21:23:32 +01:00
40e4d96d2b update internal forms (#4873)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4873
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-committed-by: Tobias Diekershoff <tobiasd@fsfe.org>
2025-03-05 14:22:51 +00:00
0e6fc087af update team
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-19 10:13:29 +01:00
c8efa11cce PD and RC form with activities (#4812)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Tobias Diekershoff <tobiasd@fsfe.org>
Co-committed-by: Tobias Diekershoff <tobiasd@fsfe.org>
2025-02-03 07:18:30 +00:00
321d8a5e3d update team
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-02 13:36:48 +01:00
414538b25c remove irakli from team
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-01 07:17:38 +02:00
deb5e8bfa5 rm delliott from team
All checks were successful
continuous-integration/drone/pr Build is passing
2024-09-02 10:34:56 +02:00
978722f4a4 Fix htusers access
All checks were successful
continuous-integration/drone/push Build is passing
2024-08-26 09:48:07 +02:00
0f6c5b448e Move files to subfolder 2024-08-26 09:48:04 +02:00