aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-08 19:42:14 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-08 19:42:14 -0600
commitc315404db80c92a695531b0aa4bcf61c125a3bff (patch)
tree9b543c68e4230741bf907532bc455efe6733990a /python/tidy.py
parentb00583bd4e7169a6b952633df718268904f2bd0c (diff)
parentb327e9b595c2d55f499b872a5ffd72835e1f3e24 (diff)
downloadservo-c315404db80c92a695531b0aa4bcf61c125a3bff.tar.gz
servo-c315404db80c92a695531b0aa4bcf61c125a3bff.zip
Auto merge of #7103 - frewsxcv:python-venv, r=metajack
Use one Python virtual environment for all mach commands *See individual commits for more information* <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7103) <!-- Reviewable:end -->
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/python/tidy.py b/python/tidy.py
index 40251cdf8a7..84a570f2d41 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -19,11 +19,6 @@ from licenseck import licenses
filetypes_to_check = [".rs", ".rc", ".cpp", ".c", ".h", ".py", ".toml", ".webidl"]
reftest_directories = ["tests/ref"]
reftest_filetype = ".list"
-python_dependencies = [
- "./python/dependencies/flake8-2.4.1-py2.py3-none-any.whl",
- "./python/dependencies/pep8-1.5.7-py2.py3-none-any.whl",
- "./python/dependencies/pyflakes-0.9.0-py2.py3-none-any.whl",
-]
ignored_files = [
# Upstream
@@ -36,6 +31,7 @@ ignored_files = [
"python/toml/*",
"components/script/dom/bindings/codegen/parser/*",
"components/script/dom/bindings/codegen/ply/*",
+ "python/_virtualenv/*",
# Generated and upstream code combined with our own. Could use cleanup
"target/*",
@@ -240,7 +236,6 @@ def check_spec(file_name, contents):
def collect_errors_for_files(files_to_check, checking_functions):
- base_path = "components/script/dom/"
for file_name in files_to_check:
with open(file_name, "r") as fp:
contents = fp.read()
@@ -273,8 +268,6 @@ def get_reftest_names(line):
def scan():
- sys.path += python_dependencies
-
all_files = collect_file_names()
files_to_check = filter(should_check, all_files)