@@ -7,6 +7,8 @@ PYTEST_ARGS=--cov=$(PROJECT) --cov-config=../.coveragerc \
77 --pyargs ${PYTEST_EXTRA}
88BLACK_FILES =$(PROJECT ) setup.py doc/conf.py examples
99BLACKDOC_OPTIONS =--line-length 79
10+ DOCFORMATTER_FILES =$(PROJECT ) setup.py doc/conf.py examples
11+ DOCFORMATTER_OPTIONS =--recursive --wrap-summaries 79 --wrap-descriptions 79
1012FLAKE8_FILES =$(PROJECT ) setup.py doc/conf.py
1113LINT_FILES =$(PROJECT ) setup.py doc/conf.py
1214
1517 @echo " "
1618 @echo " install install in editable mode"
1719 @echo " test run the test suite (including doctests) and report coverage"
18- @echo " format run black and blackdoc to automatically format the code"
19- @echo " check run code style and quality checks (black, blackdoc and flake8)"
20+ @echo " format run black, blackdoc and docformatter to automatically format the code"
21+ @echo " check run code style and quality checks (black, blackdoc, docformatter and flake8)"
2022 @echo " lint run pylint for a deeper (and slower) quality check"
2123 @echo " clean clean up build and generated files"
2224 @echo " "
@@ -38,10 +40,12 @@ test:
3840format :
3941 black $(BLACK_FILES )
4042 blackdoc $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
43+ docformatter --in-place $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4144
4245check :
4346 black --check $(BLACK_FILES )
4447 blackdoc --check $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
48+ docformatter --check $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4549 flake8 $(FLAKE8_FILES )
4650
4751lint :
0 commit comments