File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,31 +10,37 @@ all: help
1010
1111# #@ Development
1212
13+ .PHONY : venv
1314venv : # # Create a Python virtual environment
1415 $(info Creating Python 3 virtual environment...)
1516 poetry shell
1617
18+ .PHONY : install
1719install : # # Install Python dependencies
1820 $(info Installing dependencies...)
1921 poetry config virtualenvs.create false
2022 poetry install
2123
24+ .PHONY : lint
2225lint : # # Run the linter
2326 $(info Running linting...)
2427 flake8 service tests --count --select=E9,F63,F7,F82 --show-source --statistics
2528 flake8 service tests --count --max-complexity=10 --max-line-length=127 --statistics
2629 pylint service tests --max-line-length=127
2730
31+ .PHONY : test
2832test : # # Run the unit tests
2933 $(info Running tests...)
30- pytest --disable-warnings
34+ export RETRY_COUNT=1 ; pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings
3135
32- db-create : # # Creates the database tables
36+ .PHONY : db-init
37+ db-init : # # Initializes the database tables
3338 $(info Creating database tables...)
3439 @flask db-create
3540
3641# #@ Runtime
3742
43+ .PHONY : run
3844run : # # Run the service
3945 $(info Starting service...)
4046 honcho start
You can’t perform that action at this time.
0 commit comments