Merge pull request #402 from linkchecker/flake8

Add a 'tox -e flake8' and a Travis CI job
This commit is contained in:
Marius Gedminas 2020-05-19 23:09:03 +03:00 committed by GitHub
commit 1ab45c2e60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View file

@ -8,6 +8,13 @@ jobs:
include:
- python: "3.5"
env: TOXENV=oldbs4
- name: flake8
env: TOXENV=flake8
before_script:
after_success:
allow_failures:
- name: flake8
env: TOXENV=flake8
# command to install dependencies
addons:
apt:

View file

@ -13,3 +13,20 @@ python = python
[bdist_wheel]
universal = 0
[flake8]
builtins = _
max-line-length = 80
extend-ignore =
# https://pep8.readthedocs.org/en/latest/intro.html#error-codes
# these are ignored by default:
# E121: continuation line under-indented for hanging indent
# E123: closing bracket does not match indentation of opening brackets line
# E126: continuation line over-indented for hanging indent
# E133: closing bracket does not match visual indentation
# E226: missing whitespace around arithmetic operator
# E241: multiple spaces after ,
# E242: tab after ,
# E704: multiple statements on one line (def)
# W503: line break before binary operator
# W504: line break after binary operator

View file

@ -31,3 +31,8 @@ deps =
pyxdg
dnspython
{[base]deps}
[testenv:flake8]
deps = flake8
skip_install = true
commands = flake8 setup.py linkcheck {posargs}