Skip to content

Commit ba95c3f

Browse files
committed
add makefile
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
1 parent 0902549 commit ba95c3f

4 files changed

Lines changed: 237 additions & 122 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip setuptools wheel
21-
- name: Build the chaosreliably package
21+
- name: Build the package
2222
run : |
2323
make build
2424
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
make install-dev
36-
- name: Lint chaosreliably
36+
- name: Lint
3737
run: |
3838
make lint
3939

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.PHONY: install
2+
install:
3+
pip install --upgrade pip setuptools wheel
4+
pip install -r requirements.txt
5+
6+
.PHONY: install-dev
7+
install-dev: install
8+
pip install -r requirements-dev.txt
9+
python setup.py develop
10+
11+
.PHONY: build
12+
build:
13+
python setup.py build
14+
15+
.PHONY: lint
16+
lint:
17+
flake8 chaosreport/
18+
isort --check-only --profile black chaosreport/
19+
black --check --diff --line-length=80 chaosreport/
20+
21+
.PHONY: format
22+
format:
23+
isort --profile black chaosreport/
24+
black --line-length=80 chaosreport/
25+
26+
.PHONY: tests
27+
tests:
28+
pytest

0 commit comments

Comments
 (0)