Skip to content

Commit 8d86b2c

Browse files
committed
feat: update requirements and makefiles
1 parent 2d24108 commit 8d86b2c

File tree

5 files changed

+50
-31
lines changed

5 files changed

+50
-31
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.0.1
4+
rev: v4.1.0
55
hooks:
66
- id: check-added-large-files
77
- id: check-ast
@@ -24,7 +24,7 @@ repos:
2424
- id: trailing-whitespace
2525

2626
- repo: https://github.com/ambv/black
27-
rev: 21.10b0
27+
rev: 21.12b0
2828
hooks:
2929
- id: black
3030

@@ -40,6 +40,6 @@ repos:
4040
- id: yamllint
4141

4242
- repo: https://github.com/igorshubovych/markdownlint-cli
43-
rev: v0.29.0
43+
rev: v0.30.0
4444
hooks:
4545
- id: markdownlint

Makefile

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,74 @@
11
SHELL=/bin/bash
2-
.DEFAULT_GOAL := all
2+
.DEFAULT_GOAL := default
33

44
.PHONY: install
55
install:
6+
@echo "---------------------------"
7+
@echo "- Installing dependencies -"
8+
@echo "---------------------------"
69
python -m pip install --upgrade setuptools pip pip-tools
710
python -m piptools sync requirements.txt requirements-dev.txt docs/requirements.txt
811
pre-commit install
912

1013
.PHONY: update
1114
update:
15+
@echo "-------------------------"
16+
@echo "- Updating dependencies -"
17+
@echo "-------------------------"
1218
python -m piptools sync requirements.txt requirements-dev.txt docs/requirements.txt
1319

1420
pip install --upgrade pip
15-
pip-compile requirements.in
21+
pip-compile
1622
pip-compile requirements-dev.in
1723
pip-compile docs/requirements.in
1824

1925
python -m piptools sync requirements.txt requirements-dev.txt docs/requirements.txt
2026

27+
.PHONY: clean
28+
clean:
29+
@echo "---------------------------"
30+
@echo "- Cleaning unwanted files -"
31+
@echo "---------------------------"
32+
git clean -Xdf
33+
2134
.PHONY: lint
2235
lint:
23-
pre-commit run --all-files
36+
@echo "-----------------------------"
37+
@echo "- Run linters and formaters -"
38+
@echo "-----------------------------"
39+
SKIP=no-commit-to-branch pre-commit run --all-files
2440

2541
.PHONY: test
2642
test:
43+
@echo "-------------"
44+
@echo "- Run tests -"
45+
@echo "-------------"
2746
python -m pytest ${ARGS}
2847

29-
.PHONY: all
30-
all: lint test
48+
.PHONY: default
49+
default: lint test
3150

32-
.PHONY: clean
33-
clean:
34-
git clean -Xdf
51+
.PHONY: pull
52+
pull:
53+
@echo "------------------------"
54+
@echo "- Pulling last changes -"
55+
@echo "------------------------"
56+
git checkout main
57+
git pull
58+
59+
.PHONY: full
60+
full: install pull clean update lint test
3561

3662
.PHONY: docs
3763
docs:
64+
@echo "----------------"
65+
@echo "- Serving docs -"
66+
@echo "----------------"
3867
mkdocs serve --config-file docs/mkdocs.yml
3968

40-
.PHONY: build-docs
41-
build-docs:
69+
.PHONY: docs-build
70+
docs-build:
71+
@echo "-------------------"
72+
@echo "- Generating docs -"
73+
@echo "-------------------"
4274
mkdocs build --config-file docs/mkdocs.yml
43-
44-
.PHONY: pull
45-
pull:
46-
git checkout master
47-
git pull
48-
49-
.PHONY: bump-version
50-
bump-version:
51-
cz bump --changelog --no-verify
52-
git push
53-
git push --tags
54-
55-
.PHONY: bump
56-
bump: pull bump-version clean

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with python 3.9
33
# To update, run:
44
#
5-
# pip-compile requirements.in
5+
# pip-compile
66
#
77
arrow==1.2.1
88
# via jinja2-time

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.0.1
4+
rev: v4.1.0
55
hooks:
66
- id: check-added-large-files
77
- id: check-ast
@@ -24,7 +24,7 @@ repos:
2424
- id: trailing-whitespace
2525

2626
- repo: https://github.com/ambv/black
27-
rev: 21.9b0
27+
rev: 21.12b0
2828
hooks:
2929
- id: black
3030

@@ -40,7 +40,7 @@ repos:
4040
additional_dependencies: [toml]
4141

4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: v0.910-1
43+
rev: v0.931
4444
hooks:
4545
- id: mypy
4646
args: []

{{cookiecutter.project_slug}}/requirements-dev.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
-e file:.
55

66
pip-tools
7+
pre-commit
78
pytest
89
pytest-asyncio
910
requests

0 commit comments

Comments
 (0)