add new flake8-plugins and revise config

This commit is contained in:
Patrick Kanzler 2018-05-16 00:34:45 +02:00
parent 0051c876bf
commit 18e4c1b0ac
No known key found for this signature in database
GPG Key ID: F07F07153306FCEF
2 changed files with 15 additions and 2 deletions

View File

@ -9,4 +9,12 @@ universal=1
[flake8]
exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py
max-line-length = 120
# future-imports = absolute_import, division, print_function, unicode_literals # we are not there yet
accept-encoding = utf-8, utf-16
require-code = True
# FI12 __future__ import "with_statement" missing
# FI15 __future__ import "generator_stop" missing
# FI16 __future__ import "nested_scopes" missing
# FI17 __future__ import "generators" missing
# FI5x __future__ import "xxx" present
ignore = FI12,FI15,FI16,FI17,FI5
copyright-check = True

View File

@ -25,7 +25,12 @@ commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
basepython = python
# TODO add flake8-future
# TODO add flake8-print after adding logging
# TODO add flake8-docstrings
deps = flake8
flake8-coding
flake8-copyright
flake8-future-import
flake8-quotes
flake8-import-order
commands = flake8