Skip to content

Commit 43e973b

Browse files
Project rewrite (#218)
- A rewrite of the CLI - Extract Comic/Archive/Metadata modules into seperate package [shortbox](https://codeberg.org/buriedincode/shortbox) - Switch back from Seagrin to Mokkari for the Metron API - Add search/filter by coverHash - General code clean tidy and tweaks
1 parent e167acd commit 43e973b

93 files changed

Lines changed: 6501 additions & 6545 deletions

Some content is hidden

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

.editorconfig

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

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/feature_request.md

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

.github/dependabot.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ updates:
88
github_actions:
99
patterns:
1010
- "*"
11+
cooldown:
12+
default-days: 7
1113

12-
- package-ecosystem: uv
14+
- package-ecosystem: pip
1315
directory: /
1416
schedule:
1517
interval: daily
1618
groups:
1719
python:
1820
patterns:
1921
- "*"
22+
cooldown:
23+
default-days: 7
2024

2125
- package-ecosystem: pre-commit
2226
directory: /
@@ -26,3 +30,5 @@ updates:
2630
pre-commit:
2731
patterns:
2832
- "*"
33+
cooldown:
34+
default-days: 7

.github/workflows/linting.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
name: Linting
2-
32
on:
4-
push:
3+
pull_request:
54
branches:
65
- main
76
paths-ignore:
87
- docs/**
9-
pull_request:
8+
push:
109
branches:
1110
- main
1211
paths-ignore:
1312
- docs/**
1413

14+
concurrency:
15+
cancel-in-progress: true
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1517
env:
1618
PY_VERSION: '3.10'
19+
permissions: {}
1720

1821
jobs:
1922
prek:
2023
permissions:
2124
contents: read
22-
runs-on: ubuntu-latest
2325

26+
runs-on: ubuntu-latest
2427
steps:
25-
- uses: actions/checkout@v7
26-
- uses: astral-sh/setup-uv@v7
28+
- uses: actions/checkout@v7.0.0
29+
with:
30+
persist-credentials: false
31+
- uses: astral-sh/setup-uv@v8.3.2
2732
with:
2833
python-version: ${{ env.PY_VERSION }}
2934
- name: Install project

.github/workflows/publishing.yaml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,46 @@
11
name: Publishing
2+
on: push
23

3-
on:
4-
push:
5-
branches:
6-
- main
7-
paths-ignore:
8-
- docs/**
9-
tags:
10-
- "[0-9]+.[0-9]+.[0-9]+"
11-
pull_request:
12-
branches:
13-
- main
14-
paths-ignore:
15-
- docs/**
16-
4+
concurrency:
5+
cancel-in-progress: true
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
177
env:
18-
PY_VERSION: 3.14
8+
PY_VERSION: '3.14'
9+
permissions: {}
1910

2011
jobs:
2112
build:
2213
permissions:
2314
contents: read
24-
runs-on: ubuntu-latest
2515

16+
runs-on: ubuntu-latest
2617
steps:
27-
- uses: actions/checkout@v7
28-
- uses: astral-sh/setup-uv@v7
18+
- uses: actions/checkout@v7.0.0
19+
with:
20+
persist-credentials: false
21+
- uses: astral-sh/setup-uv@v8.3.2
2922
with:
3023
python-version: ${{ env.PY_VERSION }}
3124
- name: Install project
3225
run: uv sync --locked --no-dev
3326
- name: Run build
3427
run: uv build
35-
- uses: actions/upload-artifact@v7
28+
- uses: actions/upload-artifact@v7.0.1
3629
with:
3730
name: python-package-distributions
3831
path: dist/
3932

4033
validate:
4134
needs:
4235
- build
43-
permissions: {}
44-
runs-on: ubuntu-latest
4536

37+
runs-on: ubuntu-latest
4638
steps:
47-
- uses: actions/download-artifact@v8
39+
- uses: actions/download-artifact@v8.0.1
4840
with:
4941
name: python-package-distributions
5042
path: dist/
51-
- uses: astral-sh/setup-uv@v7
43+
- uses: astral-sh/setup-uv@v8.3.2
5244
with:
5345
python-version: ${{ env.PY_VERSION }}
5446
- name: Validate dist
@@ -57,17 +49,17 @@ jobs:
5749
publish:
5850
environment:
5951
name: pypi
60-
url: https://pypi.org/p/perdoo
52+
url: 'https://pypi.org/p/perdoo'
6153
if: startsWith(github.ref, 'refs/tags/')
6254
needs:
6355
- build
6456
- validate
6557
permissions:
6658
id-token: write
67-
runs-on: ubuntu-latest
6859

60+
runs-on: ubuntu-latest
6961
steps:
70-
- uses: actions/download-artifact@v8
62+
- uses: actions/download-artifact@v8.0.1
7163
with:
7264
name: python-package-distributions
7365
path: dist/

.github/workflows/rich-codex.yaml

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

.github/workflows/testing.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
name: Testing
2-
32
on:
4-
push:
3+
pull_request:
54
branches:
65
- main
76
paths-ignore:
87
- docs/**
9-
pull_request:
8+
push:
109
branches:
1110
- main
1211
paths-ignore:
1312
- docs/**
1413

1514
concurrency:
16-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1715
cancel-in-progress: true
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
permissions: {}
1818

1919
jobs:
2020
pytest:
21+
permissions:
22+
contents: read
2123
strategy:
2224
fail-fast: false
2325
matrix:
24-
python-version:
25-
- "3.10"
26-
- "3.11"
27-
- "3.12"
28-
- "3.13"
29-
- "3.14"
3026
os:
3127
- ubuntu-latest
3228
- macos-latest
3329
- windows-latest
30+
python-version:
31+
- '3.10'
32+
- '3.11'
33+
- '3.12'
34+
- '3.13'
35+
- '3.14'
3436

35-
permissions:
36-
contents: read
3737
runs-on: ${{ matrix.os }}
38-
3938
steps:
40-
- uses: actions/checkout@v7
41-
- uses: astral-sh/setup-uv@v7
39+
- uses: actions/checkout@v7.0.0
40+
with:
41+
persist-credentials: false
42+
- uses: astral-sh/setup-uv@v8.3.2
4243
with:
4344
python-version: ${{ matrix.python-version }}
4445
- name: Install project
@@ -50,9 +51,8 @@ jobs:
5051
if: always()
5152
needs:
5253
- pytest
53-
permissions: {}
54-
runs-on: ubuntu-latest
5554

55+
runs-on: ubuntu-latest
5656
steps:
5757
- name: Check for failures
5858
uses: re-actors/alls-green@v1.3.0

.github/zizmor.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
rules:
2+
unpinned-uses:
3+
ignore:
4+
- linting.yaml
5+
- testing.yaml
6+
- publishing.yaml
7+
anonymous-definition:
8+
ignore:
9+
- 'linting.yaml:22'
10+
- 'publishing.yaml:12'
11+
- 'publishing.yaml:33'
12+
- 'publishing.yaml:49'
13+
- 'testing.yaml:20'
14+
- 'testing.yaml:50'
15+
undocumented-permissions:
16+
ignore:
17+
- 'publishing.yaml:58'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
__pycache__/
33
__pypackages__/
44
.idea/
5+
.pytest_cache/
56
.ruff_cache/
67
.tox/
78
.venv/

0 commit comments

Comments
 (0)