@@ -6,6 +6,8 @@ PYTEST_COV_ARGS=--cov=$(PROJECT) --cov-config=../pyproject.toml \
66 --pyargs ${PYTEST_EXTRA}
77BLACK_FILES =$(PROJECT ) setup.py doc/conf.py examples
88BLACKDOC_OPTIONS =--line-length 79
9+ DOCFORMATTER_FILES =$(PROJECT ) setup.py doc/conf.py examples
10+ DOCFORMATTER_OPTIONS =--recursive --pre-summary-newline --wrap-summaries 79 --wrap-descriptions 79
911FLAKE8_FILES =$(PROJECT ) setup.py doc/conf.py
1012LINT_FILES =$(PROJECT ) setup.py doc/conf.py
1113
1416 @echo " "
1517 @echo " install install in editable mode"
1618 @echo " test run the test suite (including doctests) and report coverage"
17- @echo " format run black and blackdoc to automatically format the code"
18- @echo " check run code style and quality checks (black, blackdoc, isort and flake8)"
19+ @echo " format run black, blackdoc, docformatter and isort to automatically format the code"
20+ @echo " check run code style and quality checks (black, blackdoc, docformatter, isort and flake8)"
1921 @echo " lint run pylint for a deeper (and slower) quality check"
2022 @echo " clean clean up build and generated files"
2123 @echo " distclean clean up build and generated files, including project metadata files"
@@ -37,11 +39,13 @@ test:
3739
3840format :
3941 isort .
42+ docformatter --in-place $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4043 black $(BLACK_FILES )
4144 blackdoc $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
4245
4346check :
4447 isort . --check
48+ docformatter --check $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4549 black --check $(BLACK_FILES )
4650 blackdoc --check $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
4751 flake8 $(FLAKE8_FILES )
0 commit comments