Skip to content

Commit d767ac4

Browse files
authored
chore: update project structure to 7cf13131
1 parent 5dd794d commit d767ac4

File tree

15 files changed

+242
-20
lines changed

15 files changed

+242
-20
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/woltapp/wolt-python-package-cookiecutter",
3-
"commit": "4eecc9c4d27e3c9321438bc1fdaf717bec5eadf6",
3+
"commit": "7cf131315aae15890e44411c9fcecdbb584dca48",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/actions/python-poetry-env/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ inputs:
55
python-version:
66
required: false
77
description: 'Python version'
8-
default: '3.10'
8+
default: '3.12'
99
outputs: {}
1010
runs:
1111
using: 'composite'
1212
steps:
13-
- uses: actions/setup-python@v4
13+
- uses: actions/setup-python@v5
1414
with:
1515
python-version: ${{inputs.python-version}}
1616
- name: Install poetry

.github/workflows/cookiecutter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
auto-update-project:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.9
15+
python-version: "3.12"
1616

1717
- name: Install dependencies
1818
run: python -m pip install cruft poetry jello tabulate

.github/workflows/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
auto-update-dependencies:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- uses: ./.github/actions/python-poetry-env
1313

1414
- name: Install tabulate

.github/workflows/draft_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
draft-release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- uses: ./.github/actions/python-poetry-env
1717
- name: Update version
1818
id: updated_version

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build-and-publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- uses: ./.github/actions/python-poetry-env
1313
- name: Publish to pypi
1414
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
actionlint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Download actionlint
1515
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.21
1616
shell: bash
@@ -22,14 +22,14 @@ jobs:
2222
name: Check if automatic project update was successful
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626
- name: Fail if .rej files exist as structure update was not successful
2727
run: test -z "$(find . -iname '*.rej')"
2828

2929
pre-commit:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3333
- uses: ./.github/actions/python-poetry-env
3434
- run: poetry run pre-commit run --all-files
3535

.github/workflows/test.yml.rej

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff a/.github/workflows/test.yml b/.github/workflows/test.yml (rejected hunks)
2+
@@ -38,10 +38,17 @@ jobs:
3+
strategy:
4+
fail-fast: false
5+
matrix:
6+
- python-version: ["3.7", "3.8", "3.9", "3.10"]
7+
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
8+
steps:
9+
- - uses: actions/checkout@v2
10+
+ - uses: actions/checkout@v4
11+
- uses: ./.github/actions/python-poetry-env
12+
with:
13+
python-version: ${{ matrix.python-version }}
14+
- run: poetry run pytest
15+
+
16+
+ docs:
17+
+ runs-on: ubuntu-latest
18+
+ steps:
19+
+ - uses: actions/checkout@v4
20+
+ - uses: ./.github/actions/python-poetry-env
21+
+ - run: poetry run mkdocs build

.pre-commit-config.yaml.rej

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks)
2+
@@ -15,26 +15,19 @@ repos:
3+
- id: mixed-line-ending
4+
- repo: local
5+
hooks:
6+
- - id: autoflake
7+
- name: autoflake
8+
- entry: poetry run autoflake -r -i --remove-all-unused-imports --remove-unused-variables
9+
+ - id: ruff-format
10+
+ name: ruff-format
11+
+ entry: poetry run ruff format
12+
+ require_serial: true
13+
language: system
14+
types: [ python ]
15+
- - id: isort
16+
- name: isort
17+
- entry: poetry run isort
18+
- language: system
19+
- types: [python]
20+
- - id: black
21+
- name: black
22+
- entry: poetry run black
23+
- language: system
24+
- types: [python]
25+
- - id: pyupgrade
26+
- name: pyupgrade
27+
- entry: poetry run pyupgrade --py37-plus
28+
+ - id: ruff
29+
+ name: ruff
30+
+ # Add --fix, in case you want it to autofix when this hook runs
31+
+ entry: poetry run ruff check --force-exclude
32+
+ require_serial: true
33+
language: system
34+
- types: [python]
35+
+ types: [ python ]
36+
- id: mypy
37+
name: mypy
38+
entry: poetry run mypy .
39+
@@ -42,11 +35,6 @@ repos:
40+
language: system
41+
types: [python]
42+
pass_filenames: false
43+
- - id: flake8
44+
- name: flake8
45+
- entry: poetry run flake8
46+
- language: system
47+
- types: [python]
48+
- id: kacl-verify
49+
name: kacl-verify
50+
entry: poetry run kacl-cli verify

LICENCE.rej

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
diff a/LICENCE b/LICENCE (rejected hunks)
2+
@@ -1,6 +1,6 @@
3+
The MIT License (MIT)
4+
5+
-Copyright (c) 2021 Jerry Pussinen <[email protected]>
6+
+Copyright (c) 2024 Jerry Pussinen <[email protected]>
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy of
9+
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)