Skip to content

Commit b45a44f

Browse files
committedDec 5, 2022
start from beginning
1 parent 27d7872 commit b45a44f

File tree

123 files changed

+165
-66
lines changed

Some content is hidden

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

123 files changed

+165
-66
lines changed
 

‎.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v2.4.0
5+
rev: v4.3.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -13,7 +13,7 @@ repos:
1313
rev: stable
1414
hooks:
1515
- id: black
16-
language_version: python3.7
16+
language_version: python3.10
1717

1818
# - repo: https://gitlab.com/pycqa/flake8
1919
# rev: 3.7.9

‎Makefile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
help:
2+
@echo "install - install a virtualenv for development and deployment"
3+
@echo "fmt - format source code with black"
4+
@echo "test - run unit tests"
5+
@echo "deploy - deploy all your pipelines"
6+
@echo "clean - remove build, test, and Python artifacts locally"
7+
8+
VENV = venv
9+
PYTHON = $(VENV)/bin/python3
10+
PIP = $(VENV)/bin/pip
11+
12+
.PHONY: venv
13+
venv:
14+
@test -d "venv" || mkdir -p "venv"
15+
@rm -Rf "venv"
16+
@python3 -m venv "venv"
17+
18+
install: upgrade-pip install-tests
19+
20+
upgrade-pip:
21+
$(PIP) install --upgrade pip setuptools
22+
23+
install-tests:
24+
$(PIP) install -r tests/requirements.txt
25+
26+
fmt:
27+
$(PIP) install black
28+
$(PYTHON) -m black .
29+
30+
test:
31+
export PYTHONPATH=".:./src" && \
32+
$(PYTHON) -m pytest tests/
33+
34+
clean:
35+
@rm -fr .tox/
36+
@rm -fr .venv/
37+
@find . -name '*.egg-info' -exec rm -fr {} +
38+
@find . -name "*.py[co]" -o -name .pytest_cache -exec rm -rf {} +
39+
@find . -name '*.egg' -exec rm -f {} +
40+
@find . -name '*.pyc' -exec rm -f {} +
41+
@find . -name '*.pyo' -exec rm -f {} +
42+
@find . -name '*~' -exec rm -f {} +
43+
@find . -name '__pycache__' -exec rm -fr {} +

0 commit comments

Comments
 (0)
Please sign in to comment.