539d13e816
- upgrade flake8 to 3.6.0 - remove use of hacking since pre-commit replaced it - mentioned minimal flake8 version on pre-commit config - fixed newer linting errors - disable W504 as it seems not possible to fix (conflict with W403) - replaced buggy tox deps installation with native pip install, which address the issue of missing to install new deps when the reqs files are updated, developer being forced to to recreate the virtualenv. - prepare for migration from tox-pep8 to tox-linters, now these being just aliases. Change-Id: I310578dce215aaf00a5b2d54716f90da9a1ecb4d Depends-On: https://review.openstack.org/#/c/613726/
15 lines
448 B
YAML
15 lines
448 B
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: end-of-file-fixer
|
|
- id: flake8
|
|
args: ['--config=setup.cfg']
|
|
language: python
|
|
types: [python]
|
|
additional_dependencies: [flake8>=3.6.0]
|
|
- id: trailing-whitespace
|