Fix lint errors, adding a formatter

This commit is contained in:
Yuval Goldberg
2020-10-18 11:16:48 +03:00
parent 4331db74d0
commit 0ab9edf57b
4 changed files with 247 additions and 153 deletions

View File

@@ -1,7 +1,11 @@
FLAKE_FLAGS = --ignore=E501,F401,F403,F405
IGNORE_ERRORS = E501,F401,F403,F405
PKG = mathgenerator
format:
python -m autopep8 --ignore=$(IGNORE_ERRORS) -i $(PKG)/*
lint:
python -m flake8 $(FLAKE_FLAGS)
python -m flake8 --ignore=$(IGNORE_ERRORS) $(PKG)
test:
python -m pytest --verbose -s tests