Skip to content

Commit 356458c

Browse files
Merge branch 'main' into 165-move-configuration-to-tex-bot-deploymentyaml
2 parents eb252db + 954dbc5 commit 356458c

94 files changed

Lines changed: 8394 additions & 4844 deletions

File tree

Some content is hidden

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

‎.dockerignore‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
.git
22
.github
33
.dockerignore
4-
.idea
5-
codeStyleConfig.xml
64
CONTRIBUTING.md
75
Dockerfile
86
*.env
97
!.env
10-
poetry.lock
8+
uv.lock
119
pyproject.toml
1210
tests
11+
.gitlint
12+
.pre-commit-config.yaml
13+
.taplo.toml
14+
.yamlfmt.yaml
15+
.venv
16+
.python-version
17+
.hadolint.yaml

‎.gitattributes‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* text=auto
2+
3+
*.py text eol=lf
4+
*.json text eol=lf
5+
*.yml text eol=lf
6+
*.yaml text eol=lf
7+
.toml text eol=lf
8+
.md text eol=lf
9+
.*ignore text eol=lf
10+
.env* text eol=lf
11+
.gitattributes text eol=lf
12+
.gitlint text eol=lf
13+
.python-version text eol=lf
14+
.Dockerfile text eol=lf
15+
16+
LICENSE binary
17+
uv.lock binary
18+
db/core/migrations/*.py binary

‎.github/CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
# Global Owners
55
# Default requesters
6-
* @CarrotManMatt
6+
* @CarrotManMatt @MattyTheHacker

‎.github/dependabot.yaml‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.github/renovate.json‎

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"assignAutomerge": false,
4+
"automerge": true,
5+
"configMigration": true,
6+
"dependencyDashboard": true,
7+
"dependencyDashboardAutoclose": true,
8+
"dependencyDashboardLabels": [
9+
"dependencies"
10+
],
11+
"enabled": true,
12+
"enabledManagers": [
13+
"github-actions",
14+
"pep621",
15+
"pep723",
16+
"pre-commit",
17+
"dockerfile"
18+
],
19+
"extends": [
20+
"replacements:all",
21+
"workarounds:all"
22+
],
23+
"gitIgnoredAuthors": [
24+
"autofix-ci@users.noreply.github.com",
25+
"autofix-ci[bot]@users.noreply.github.com",
26+
"114827586+autofix-ci[bot]@users.noreply.github.com"
27+
],
28+
"labels": [
29+
"dependencies"
30+
],
31+
"lockFileMaintenance": {
32+
"automerge": true,
33+
"enabled": true
34+
},
35+
"packageRules": [
36+
{
37+
"dependencyDashboardApproval": true,
38+
"description": "Only update Python versions after approval",
39+
"groupName": "python-version",
40+
"matchPackageNames": [
41+
"python"
42+
],
43+
"matchUpdateTypes": [
44+
"major",
45+
"minor"
46+
]
47+
},
48+
{
49+
"dependencyDashboardApproval": true,
50+
"description": "Only update py-cord versions after approval",
51+
"groupName": "py-cord-version",
52+
"matchPackageNames": [
53+
"py-cord"
54+
],
55+
"matchUpdateTypes": [
56+
"major",
57+
"minor",
58+
"patch"
59+
]
60+
},
61+
{
62+
"groupName": "pep621",
63+
"matchManagers": [
64+
"pep621"
65+
]
66+
},
67+
{
68+
"groupName": "github-actions",
69+
"matchDatasources": [
70+
"github-tags"
71+
],
72+
"matchManagers": [
73+
"github-actions"
74+
]
75+
},
76+
{
77+
"groupName": "github-runners",
78+
"matchDatasources": [
79+
"github-runners"
80+
],
81+
"matchManagers": [
82+
"github-actions"
83+
]
84+
},
85+
{
86+
"groupName": "pre-commit",
87+
"matchManagers": [
88+
"pre-commit"
89+
]
90+
},
91+
{
92+
"description": "Update frequently changing pre-commit hooks on Tuesday mornings",
93+
"matchManagers": [
94+
"pre-commit"
95+
],
96+
"matchPackageNames": [
97+
"renovatebot/pre-commit-hooks",
98+
"astral-sh/uv-pre-commit",
99+
"astral-sh/ruff-pre-commit"
100+
],
101+
"schedule": [
102+
"* 3-8 * * 2"
103+
]
104+
}
105+
],
106+
"prHourlyLimit": 10,
107+
"pre-commit": {
108+
"enabled": true
109+
},
110+
"timezone": "Europe/London"
111+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: autofix.ci
2+
3+
"on":
4+
pull_request:
5+
branches: [main]
6+
workflow_call:
7+
inputs:
8+
skip-autofix:
9+
default: false
10+
required: false
11+
type: boolean
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
autofix-pre-commit:
18+
env:
19+
UV_FROZEN: true
20+
UV_NO_SYNC: true
21+
UV_PYTHON_DOWNLOADS: never
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v6
26+
27+
- name: Add GB Locale
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y locales
31+
sudo locale-gen en_GB.UTF-8
32+
shell: bash
33+
34+
- name: Set Up Python
35+
uses: actions/setup-python@v6
36+
with:
37+
python-version-file: .python-version
38+
39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v8.1.0
41+
with:
42+
enable-cache: true
43+
44+
- name: Install prek From Locked Dependencies
45+
run: uv sync --only-group pre-commit
46+
47+
- id: store-hashed-python-version
48+
name: Store Hashed Python Version
49+
run: echo "hashed_python_version=$(uv run -- python -VV | sha256sum | cut -d' ' -f1)"
50+
>> "$GITHUB_OUTPUT"
51+
52+
- uses: actions/cache@v5
53+
with:
54+
key: prek|${{steps.store-hashed-python-version.outputs.hashed_python_version}}|${{hashFiles('.pre-commit-config.yaml')}}
55+
path: ~/.cache/prek
56+
57+
- name: Setup pre-commit Environments
58+
run: uv run -- prek install-hooks
59+
60+
- name: Run prek
61+
run: |
62+
set -o pipefail
63+
if [[ "${{github.event_name}}" == "push" && "${{github.ref_name}}" == "${{github.event.repository.default_branch}}" ]]; then
64+
uv run -- prek run --all-files --hook-stage manual --color never --skip ruff-check --skip uv-lock --skip gitlint-ci | tee /tmp/prek.log
65+
else
66+
uv run -- prek run --all-files --hook-stage manual --color never --skip ruff-check --skip uv-lock | tee /tmp/prek.log
67+
fi
68+
69+
- name: Ensure No Warnings
70+
run: "if grep -q '^warning: ' /tmp/prek.log; then exit 1; fi"
71+
72+
- if: "!cancelled() && inputs.skip-autofix != true"
73+
uses: autofix-ci/action@v1.3.4

0 commit comments

Comments
 (0)