Skip to content

Commit 503db7f

Browse files
authored
House cleaning (#85)
- Switch off piped - Change license to MIT - Switch to UV in docker image - Also make it more lightweight Signed-off-by: davfsa <davfsa@gmail.com>
1 parent 2c20753 commit 503db7f

29 files changed

+1064
-685
lines changed

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
.git
2+
.github
3+
.mypy_cache
4+
.nox
5+
.ruff_cache
6+
venv
7+
.venv
8+
__pycache__/
9+
110
config.yaml
211
updated.txt
312
data/

.github/actions/setup-py/action.yml

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

.github/dependabot.yml

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

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
linting:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup uv
24+
uses: astral-sh/setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # v5.3.1
25+
with:
26+
python-version: 3.13
27+
28+
- name: Install nox
29+
run: |
30+
uv sync --frozen --only-group nox
31+
32+
- name: Audit
33+
if: always() && !cancelled()
34+
run: |
35+
nox -s audit
36+
37+
- name: Mypy
38+
if: always() && !cancelled()
39+
run: |
40+
nox -s mypy
41+
42+
- name: Pyright
43+
if: always() && !cancelled()
44+
run: |
45+
nox -s pyright
46+
47+
- name: Ruff
48+
if: always() && !cancelled()
49+
run: |
50+
nox -s ruff
51+
52+
- name: Codespell
53+
if: always() && !cancelled()
54+
run: |
55+
nox -s codespell
56+
57+
- name: Check trailing whitespaces
58+
if: always() && !cancelled()
59+
run: |
60+
nox -s check-trailing-whitespaces

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
name: Docker
22

3-
# This workflow uses actions that are not certified by GitHub.
4-
# They are provided by a third-party and are governed by
5-
# separate terms of service, privacy policy, and support
6-
# documentation.
7-
83
on:
94
schedule:
10-
- cron: "25 14 1 * *"
5+
- cron: "00 14 1 * *"
116
push:
12-
branches: [ "master" ]
7+
branches: ["master"]
138
# Publish semver tags as releases.
14-
tags: [ "v*.*.*" ]
9+
tags: ["v*.*.*"]
1510
pull_request:
16-
branches: [ "master" ]
11+
branches: ["master"]
1712

1813
env:
1914
# Use docker.io for Docker Hub if empty
2015
REGISTRY: ghcr.io
2116
# github.repository as <account>/<repo>
2217
IMAGE_NAME: ${{ github.repository }}
2318

24-
2519
jobs:
2620
build:
27-
2821
runs-on: ubuntu-latest
2922
permissions:
3023
contents: read
@@ -35,15 +28,13 @@ jobs:
3528

3629
steps:
3730
- name: Checkout repository
38-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
39-
with:
40-
submodules: "true"
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4132

4233
# Install the cosign tool except on PR
4334
# https://github.com/sigstore/cosign-installer
4435
- name: Install cosign
4536
if: github.event_name != 'pull_request'
46-
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da #v3.7.0
37+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
4738

4839
# Set up BuildKit Docker container builder to be able to build
4940
# multi-platform images and export cache

.github/workflows/freeze-for-pr.yml

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

.github/workflows/lint.yml

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

.github/workflows/reformat.yml

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

.github/workflows/resync-piped.yml

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

.github/workflows/type-check.yml

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

0 commit comments

Comments
 (0)