Skip to content
Snippets Groups Projects
Commit e0eb6c82 authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #54 rename "black" command and stage to "format"

parent d1f8a4a6
No related branches found
No related tags found
No related merge requests found
stages: stages:
- prepare - prepare
- black - format
- test - test
- build - build
- release - release
...@@ -48,10 +48,10 @@ push_to_github: ...@@ -48,10 +48,10 @@ push_to_github:
- setup.py - setup.py
- tests/**/*.py - tests/**/*.py
black: format:
<<: *pyenv <<: *pyenv
<<: *changes <<: *changes
stage: black stage: format
script: script:
- pyenv shell 3.6.4 # black install and run needs python 3.6.x minimum - pyenv shell 3.6.4 # black install and run needs python 3.6.x minimum
- pip install -r requirements_dev.txt - pip install -r requirements_dev.txt
......
.PHONY: docs tests check mypy pylint black .PHONY: docs tests check mypy pylint format
# generate documentation # generate documentation
docs: docs:
...@@ -9,7 +9,7 @@ tests: ...@@ -9,7 +9,7 @@ tests:
python3 -m unittest ${TESTS_FILTER} python3 -m unittest ${TESTS_FILTER}
# check # check
check: mypy pylint black check: mypy pylint format
# check static typing # check static typing
mypy: mypy:
...@@ -20,5 +20,5 @@ pylint: ...@@ -20,5 +20,5 @@ pylint:
pylint --disable=C,R0913,R0903,R0902,R0914,R0912,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ pylint --disable=C,R0913,R0903,R0902,R0914,R0912,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/
# format code # format code
black: format:
black duniterpy black duniterpy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment