Skip to content

Commit 11a2d0c

Browse files
authored
Merge pull request #77 from mnako/refactor/update-tooling
Refactor: update tooling
1 parent 6d35fc1 commit 11a2d0c

Some content is hidden

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

61 files changed

+1525
-1143
lines changed

.github/dependabot.yml

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

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: "ubuntu-latest"
12+
strategy:
13+
matrix:
14+
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: "Set up Python"
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: "Set up PDM"
24+
run: pip install --user pdm
25+
26+
- name: "Test Cookiecutter"
27+
run: make test

.github/workflows/tasks.yml

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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea/
2+
.mypy_cache/
3+
.pdm.toml
4+
.pytest_cache/
5+
__pypackages__/
6+
**/__pycache__/

Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
install:
2-
pip3 install -U pip
3-
pip3 install poetry
4-
poetry install
1+
dev-env:
2+
@if [ ! -d "__pypackages__" ]; then pdm install; pdm install --group dev; fi;
53

6-
test:
7-
poetry run pytest --capture=no --verbose
4+
test: dev-env
5+
pdm run pytest --verbose tests
86

9-
.PHONY: install test
7+
rm:
8+
rm -rf .mypy_cache/ || true
9+
rm -rf .pytest_cache/ || true
10+
rm -rf __pypackages__/ || true
11+
rm -rf tests/__pycache__/ || true
12+
13+
.PHONY: dev-env test rm

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ This will give you a Docker-Compose project that includes:
1717
* Celery worker;
1818
* Celery Beat.
1919

20-
Dist images will also include nginx with SSL config and certs managed by
21-
letsencrypt (WIP).
22-
2320
To start your new project do:
2421

2522
cd <project_dir>
@@ -38,8 +35,8 @@ To test your app do:
3835

3936
To create an optimised production build do:
4037

41-
make build PROJECT_VERSION=0.0.0
38+
make build VERSION=0.0.0
4239

4340
To push the optimised images to the registry do:
4441

45-
make push PROJECT_VERSION=0.0.0
42+
make push VERSION=0.0.0

0 commit comments

Comments
 (0)