aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy
diff options
context:
space:
mode:
authoraskeing <askeing@gmail.com>2016-04-15 11:16:03 +0800
committeraskeing <askeing@gmail.com>2016-04-15 11:16:03 +0800
commitee433a030c306990f14a0dbbf91f1d4bf5e3003c (patch)
tree494494ea846e803fb53decdc4417061ffd9b5888 /python/tidy
parente20def068eba85a17e9491243611603f7f95d676 (diff)
downloadservo-ee433a030c306990f14a0dbbf91f1d4bf5e3003c.tar.gz
servo-ee433a030c306990f14a0dbbf91f1d4bf5e3003c.zip
Add servo_tidy_tests into ignore dirs, and modify setup.py to fit the tidy check
- fix the issue of '$ ./mach test-tidy --no-progress'
Diffstat (limited to 'python/tidy')
-rw-r--r--python/tidy/servo_tidy/tidy.py2
-rw-r--r--python/tidy/setup.py12
2 files changed, 12 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 6110a9ea4eb..43c4eb6dc69 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -56,7 +56,7 @@ ignored_dirs = [
os.path.join(".", "tests", "wpt", "sync"),
os.path.join(".", "tests", "wpt", "sync_css"),
os.path.join(".", "python", "mach"),
- os.path.join(".", "python", "tidy_self_test"),
+ os.path.join(".", "python", "tidy", "servo_tidy_tests"),
os.path.join(".", "components", "script", "dom", "bindings", "codegen", "parser"),
os.path.join(".", "components", "script", "dom", "bindings", "codegen", "ply"),
os.path.join(".", "python", "_virtualenv"),
diff --git a/python/tidy/setup.py b/python/tidy/setup.py
index 9b87bf9c8bb..81b788e6c14 100644
--- a/python/tidy/setup.py
+++ b/python/tidy/setup.py
@@ -1,3 +1,12 @@
+# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
+# file at the top-level directory of this distribution.
+#
+# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+# option. This file may not be copied, modified, or distributed
+# except according to those terms.
+
import os
from setuptools import setup, find_packages
@@ -27,7 +36,8 @@ if __name__ == '__main__':
setup(
name='servo_tidy',
version=VERSION,
- description='The servo-tidy is used to check licenses, line lengths, whitespace, flake8 on Python files, lock file versions, and more.',
+ description='The servo-tidy is used to check licenses, '
+ 'line lengths, whitespace, flake8 on Python files, lock file versions, and more.',
long_description=long_description,
keywords='mozilla servo tidy ',
author='The Servo Project Developers',