Skip to content

Commit 12f135a

Browse files
committed
Add CI/CD workflows and tweaks to admin panel
1 parent 931ebc3 commit 12f135a

59 files changed

Lines changed: 356 additions & 769 deletions

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ venv/
1010
db.sqlite3
1111
staticfiles/
1212
node_modules/
13-
docs/
13+
docs/

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ CELERY_TASK_ALWAYS_EAGER=false
2323

2424
DJANGO_SUPERUSER_USERNAME=admin
2525
DJANGO_SUPERUSER_EMAIL=admin@example.com
26-
DJANGO_SUPERUSER_PASSWORD=adminpass
26+
DJANGO_SUPERUSER_PASSWORD=adminpass

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ OPENROUTER_APP_NAME=newsletter-maker
44
OLLAMA_URL=http://ollama:11434
55
REDDIT_CLIENT_ID=client
66
REDDIT_CLIENT_SECRET=secret
7-
REDDIT_USER_AGENT=newsletter-maker/test
7+
REDDIT_USER_AGENT=newsletter-maker/test

.github/workflows/lint.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
lint:
17+
name: Run lint suite
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.13"
28+
cache: pip
29+
cache-dependency-path: requirements.txt
30+
31+
- name: Install just
32+
uses: extractions/setup-just@v3
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
python -m pip install -r requirements.txt
38+
39+
- name: Install pre-commit hooks
40+
run: pre-commit install --install-hooks
41+
42+
- name: Run lint
43+
run: just lint

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ celerybeat-schedule*
1010
db.sqlite3
1111
staticfiles/
1212

13-
docs/LLM.md
14-
docs/VENDOR.md
13+
docs/

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
9+
- repo: local
10+
hooks:
11+
- id: just-lint
12+
name: just lint
13+
entry: just lint
14+
language: system
15+
pass_filenames: false

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"buildx",
55
"cfgv",
66
"djlint",
7+
"FAVICONS",
78
"gunicorn",
89
"healthz",
910
"HNSW",
@@ -29,4 +30,4 @@
2930
"upserted",
3031
"upvote"
3132
]
32-
}
33+
}

0 commit comments

Comments
 (0)