f204fe50d6a1 draft — Oben Sonne 4 years ago
more flake8
1 files changed, 14 insertions(+), 1 deletions(-)

M Makefile
M Makefile +14 -1
@@ 103,11 103,21 @@ export HGRC
 
 define REQUIREMENTS
 flake8
+flake8-commas
+flake8-docstrings
 isort
 nose
 endef
 export REQUIREMENTS
 
+define FLAKE8
+[flake8]
+ignore =
+    # D10X: missing docstring
+    D100, D101, D102, D102, D103, D104, D105, D106, D107, D108, D109
+endef
+export FLAKE8
+
 .hgignore:
 	@echo "$$HGIGNORE" > $@
 

          
@@ 120,6 130,9 @@ setup.py:
 requirements.txt:
 	echo "$$REQUIREMENTS" > $@
 
+.flake8:
+	echo "$$FLAKE8" > $@
+
 src/$(APP):
 	mkdir -p $@
 	touch $@/__init__.py

          
@@ 129,7 142,7 @@ src/$(APP):
 	touch $@/tests/cli_tests.py
 
 .PHONY: init
-init: | .hgignore requirements.txt setup.py src/$(APP) .hg/hgrc
+init: | .hgignore requirements.txt setup.py src/$(APP) .hg/hgrc .flake8
 
 .PHONY: initclean
 initclean: