File tree Expand file tree Collapse file tree 3 files changed +31
-14
lines changed Expand file tree Collapse file tree 3 files changed +31
-14
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,15 @@ jobs:
21
21
run : |
22
22
pip install --upgrade pip
23
23
pip install poetry
24
- ./ build-drafter.sh
24
+ make build-drafter
25
25
poetry install
26
- pip install 'Django ${{ matrix.django-version }}'
26
+ make install
27
27
28
28
- name : Check coding standards
29
- run : |
30
- poetry run isort --profile black -c --diff .
31
- poetry run flake8 .
32
- poetry run black --check .
29
+ run : make lint
33
30
34
31
- name : Run tests
35
- run : |
36
- poetry run coverage run --source=apiblueprint_view --omit=apiblueprint_view/tests/*.py ./run_tests.py
37
- poetry run coverage xml
32
+ run : make test
38
33
39
34
- name : Ensure package builds
40
35
run : poetry build
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ This project uses:
9
9
10
10
Development Tasks:
11
11
12
- * Install dependencies: ` poetry install `
13
- * Run the test suite: ` ./run_tests.py `
14
- * Sort imports: ` isort --profile black . `
15
- * Run lint checks: ` flake8 . `
16
- * Auto-format: ` black . `
12
+ * Install dependencies: ` make install `
13
+ * Run the test suite: ` make test `
14
+ * Run lint checks: ` make lint `
15
+ * Auto-format: ` make format `
Original file line number Diff line number Diff line change
1
+ .PHONY : help build-drafter format install lint test
2
+
3
+ help :
4
+ @grep ' ^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' ' \n'
5
+
6
+ build-drafter :
7
+ ./build-drafter.sh
8
+
9
+ format :
10
+ poetry run isort --profile black .
11
+ poetry run black .
12
+
13
+ install :
14
+ poetry install
15
+
16
+ lint :
17
+ poetry run isort --profile black -c --diff .
18
+ poetry run black --check .
19
+ poetry run flake8 .
20
+
21
+ test :
22
+ poetry run coverage run --source=apiblueprint_view --omit=apiblueprint_view/tests/* .py ./run_tests.py
23
+ poetry run coverage xml
You can’t perform that action at this time.
0 commit comments