diff options
author | Sorin Sbarnea <ssbarnea@redhat.com> | 2018-10-27 10:20:28 +0100 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2018-10-28 11:44:43 +0000 |
commit | 539d13e81610cbc70c948c74f1d064175ce55384 (patch) | |
tree | 8f4daa2d8d4cc21eef09a6a49e0e74291080b3fd /jenkins_jobs/cache.py | |
parent | 4652775214cd9cf0d63c9f936318aea38de16256 (diff) | |
download | python-jenkins-job-builder-539d13e81610cbc70c948c74f1d064175ce55384.tar.gz python-jenkins-job-builder-539d13e81610cbc70c948c74f1d064175ce55384.tar.xz python-jenkins-job-builder-539d13e81610cbc70c948c74f1d064175ce55384.zip |
Fix flake8 failures and make its execution more consistent
- 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/
Diffstat (limited to 'jenkins_jobs/cache.py')
-rw-r--r-- | jenkins_jobs/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jenkins_jobs/cache.py b/jenkins_jobs/cache.py index 61a79e57..d64d6d9f 100644 --- a/jenkins_jobs/cache.py +++ b/jenkins_jobs/cache.py @@ -43,7 +43,7 @@ class JobCache(object): def __init__(self, jenkins_url, flush=False): cache_dir = self.get_cache_dir() # One cache per remote Jenkins URL: - host_vary = re.sub('[^A-Za-z0-9\-\~]', '_', jenkins_url) + host_vary = re.sub(r'[^A-Za-z0-9\-\~]', '_', jenkins_url) self.cachefilename = os.path.join( cache_dir, 'cache-host-jobs-' + host_vary + '.yml') |