mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Revert "Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests."
This reverts commit 47d6d958f5
.
This commit is contained in:
parent
759c52d7eb
commit
e38df50bbf
51 changed files with 51 additions and 5815 deletions
|
@ -19,11 +19,6 @@ from licenseck import licenses
|
|||
filetypes_to_check = [".rs", ".rc", ".cpp", ".c", ".h", ".lock", ".py", ".toml", ".webidl"]
|
||||
reftest_dir = "./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/*",
|
||||
|
@ -418,7 +414,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()
|
||||
|
@ -467,8 +462,6 @@ def check_reftest_html_files_in_basic_list(reftest_dir):
|
|||
|
||||
|
||||
def scan():
|
||||
sys.path += python_dependencies
|
||||
|
||||
all_files = (os.path.join(r, f) for r, _, files in os.walk(".") for f in files)
|
||||
files_to_check = filter(should_check, all_files)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue