@@ -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"
@@ -39,11 +41,13 @@ format:
3941 isort .
4042 black $(BLACK_FILES )
4143 blackdoc $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
44+ docformatter --in-place $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4245
4346check :
4447 isort . --check
4548 black --check $(BLACK_FILES )
4649 blackdoc --check $(BLACKDOC_OPTIONS ) $(BLACK_FILES )
50+ docformatter --check $(DOCFORMATTER_OPTIONS ) $(DOCFORMATTER_FILES )
4751 flake8 $(FLAKE8_FILES )
4852
4953lint :
0 commit comments