summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
Commit message (Collapse)AuthorAgeFilesLines
* Setup python-black for auto code style fmtThanh Ha2019-09-091-8/+18
| | | | | | | | | Instead of having our reviewers spend time and effort commenting on code style in changes let's make the process more automated by using an opinionated tool like python-black. Change-Id: Ia2724a0b38381a2ef1860c3fcd9d44bb51b8ddbb Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Fix flake8 failures and make its execution more consistentSorin Sbarnea2018-10-281-1/+4
| | | | | | | | | | | | | | | | - 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/
* adopt pre-commit hooksSorin Sbarnea2018-07-121-0/+11
Change-Id: I98bc0b5717c3921b35e74f53c55f896427880a84 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>