Bug 1391019 - Move tools/lint/flake_/__init__.py to tools/lint/python/flake8.py, r?gps draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 31 Aug 2017 10:06:08 -0400
changeset 656680 90922503ef351dece72f9e3c876c7eb49bd16a33
parent 656655 fb22415719a9d971a2646fa2d1b74e134ca00c3d
child 656681 594491149602dbe8803102f6e52d99d27f1c7150
child 656708 7f81e382656208f8f7ae20c632f6fd0ed4ff1e52
child 656852 53bfeaad613b9975f8b86bc7f7824bf343cb0677
push id77286
push userahalberstadt@mozilla.com
push dateThu, 31 Aug 2017 15:03:32 +0000
reviewersgps
bugs1391019
milestone57.0a1
Bug 1391019 - Move tools/lint/flake_/__init__.py to tools/lint/python/flake8.py, r?gps This will allow us keep python related linting files in the same place. MozReview-Commit-ID: ABtq9dnPo9T
taskcluster/docker/lint/Dockerfile
tools/lint/flake8.yml
tools/lint/flake8_/__init__.py
tools/lint/flake8_/flake8_requirements.txt
tools/lint/python/__init__.py
tools/lint/python/flake8.py
tools/lint/python/flake8_requirements.txt
--- a/taskcluster/docker/lint/Dockerfile
+++ b/taskcluster/docker/lint/Dockerfile
@@ -20,18 +20,18 @@ ADD topsrcdir/taskcluster/docker/recipes
 
 # %include taskcluster/docker/recipes/install-mercurial.sh
 ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /build/install-mercurial.sh
 ADD system-setup.sh /tmp/system-setup.sh
 # %include tools/lint/eslint/manifest.tt
 ADD topsrcdir/tools/lint/eslint/manifest.tt /tmp/eslint.tt
 # %include tools/lint/eslint/eslint-plugin-mozilla/manifest.tt
 ADD topsrcdir/tools/lint/eslint/eslint-plugin-mozilla/manifest.tt /tmp/eslint-plugin-mozilla.tt
-# %include tools/lint/flake8_/flake8_requirements.txt
-ADD topsrcdir/tools/lint/flake8_/flake8_requirements.txt /tmp/flake8_requirements.txt
+# %include tools/lint/python/flake8_requirements.txt
+ADD topsrcdir/tools/lint/python/flake8_requirements.txt /tmp/flake8_requirements.txt
 # %include tools/lint/tox/tox_requirements.txt
 ADD topsrcdir/tools/lint/tox/tox_requirements.txt /tmp/tox_requirements.txt
 RUN bash /tmp/system-setup.sh
 
 # %include taskcluster/docker/recipes/run-task
 ADD topsrcdir/taskcluster/docker/recipes/run-task /builds/worker/bin/run-task
 RUN chown -R worker:worker /builds/worker/bin && chmod 755 /builds/worker/bin/*
 
--- a/tools/lint/flake8.yml
+++ b/tools/lint/flake8.yml
@@ -19,9 +19,9 @@ flake8:
         - tools/mercurial
         - tools/tryselect
         - toolkit/components/telemetry
     # Excludes should be added to topsrcdir/.flake8 due to a bug in flake8 where
     # specifying --exclude causes custom configuration files to be ignored.
     exclude: []
     extensions: ['py']
     type: external
-    payload: flake8_:lint
+    payload: python.flake8:lint
rename from tools/lint/flake8_/__init__.py
rename to tools/lint/python/__init__.py
copy from tools/lint/flake8_/__init__.py
copy to tools/lint/python/flake8.py
rename from tools/lint/flake8_/flake8_requirements.txt
rename to tools/lint/python/flake8_requirements.txt