servo/python
bors-servo b1f0357fce Auto merge of #7118 - g-k:tidy-check-unused-html-files, r=jdm
Add tidy check for unused reftest html files

Refs: https://github.com/servo/servo/issues/7078

Sample output:

```
$ time ./mach test-tidy
tests/ref/background_image_a.html not used or commented out in basic.list
tests/ref/background_image_ref.html not used or commented out in basic.list
tests/ref/canvas_linear_gradient_a.html not used or commented out in basic.list
tests/ref/canvas_linear_gradient_ref.html not used or commented out in basic.list
tests/ref/canvas_radial_gradient_a.html not used or commented out in basic.list
tests/ref/canvas_radial_gradient_ref.html not used or commented out in basic.list
tests/ref/inline_border_a.html not used or commented out in basic.list
tests/ref/inline_border_b.html not used or commented out in basic.list
tests/ref/inline_text_align_a.html not used or commented out in basic.list
tests/ref/inline_text_align_b.html not used or commented out in basic.list
tests/ref/link_style_dynamic_addition.html not used or commented out in basic.list
tests/ref/link_style_dynamic_addition_ref.html not used or commented out in basic.list
tests/ref/overflow_position_abs_inside_normal_a.html not used or commented out in basic.list
tests/ref/overflow_position_abs_inside_normal_b.html not used or commented out in basic.list
tests/ref/overflow_position_abs_simple_a.html not used or commented out in basic.list
tests/ref/overflow_position_abs_simple_b.html not used or commented out in basic.list
tests/ref/position_fixed_a.html not used or commented out in basic.list
tests/ref/position_fixed_b.html not used or commented out in basic.list
tests/ref/position_fixed_simple_a.html not used or commented out in basic.list
tests/ref/position_fixed_simple_b.html not used or commented out in basic.list
tests/ref/position_fixed_static_y_a.html not used or commented out in basic.list
tests/ref/position_fixed_static_y_b.html not used or commented out in basic.list
tests/ref/style_is_in_doc.html not used or commented out in basic.list
tests/ref/style_is_in_doc_ref.html not used or commented out in basic.list
tests/ref/table_specified_width_a.html not used or commented out in basic.list
tests/ref/table_specified_width_ref.html not used or commented out in basic.list
tests/ref/text_decoration_propagation_a.html not used or commented out in basic.list
tests/ref/text_decoration_propagation_b.html not used or commented out in basic.list
tests/ref/text_shadow_multiple_shadows_a.html not used or commented out in basic.list
tests/ref/text_shadow_multiple_shadows_ref.html not used or commented out in basic.list
tests/ref/viewport_percentage_vmin_vmax_b.html not used or commented out in basic.list
tests/ref/viewport_percentage_vw_vh_b.html not used or commented out in basic.list
tests/ref/white_space_intrinsic_sizes_a.html not used or commented out in basic.list
tests/ref/white_space_intrinsic_sizes_ref.html not used or commented out in basic.list
tests/ref/fonts/takao-p-gothic/COPYING.html not used or commented out in basic.list
tests/ref/iframe/multiple_external_child.html not used or commented out in basic.list
...
```

I thought it might be helpful to say which files aren't used in `basic.list`.

`./mach test-tidy` is a second or two slower on my laptop.
Not sure if this counts as a warning or an error that should return 1.
Not sure whether unused file output should go before or after the line specific errors.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7118)
<!-- Reviewable:end -->
2015-08-24 16:03:05 -06:00
..
dependencies Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
mach Update mach from gecko tree 2015-07-01 10:55:50 +01:00
mozdebug Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
mozinfo Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
mozlog Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
servo Utilize Python context managers for opening/closing files 2015-08-21 11:15:17 -04:00
toml Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
licenseck.py Add flake8 to the tidy process for Python files 2015-06-04 11:17:34 -04:00
mach_bootstrap.py Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests. 2015-08-09 11:20:40 +02:00
README.md Update the README files to reflect the changes to the update procedure. 2015-04-03 23:29:22 +01:00
tidy.py Auto merge of #7118 - g-k:tidy-check-unused-html-files, r=jdm 2015-08-24 16:03:05 -06:00

This directory contains various Python modules used to support servo development.

= mach =

The command dispatch framework used to wrap the build system and test harnesses.

= mozdebug =

mozbase module containing information about various debuggers.

This can be updated by copying the latest version from https://hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/mozdebug

= mozinfo =

Mozbase module for extracting information about the host hardware / os.

This can be updated by copying the latest version from hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/mozinfo

= mozlog =

A mozbase logging module required for wptrunner output and command line arguments.

This can be updated by copying the latest version from hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/mozlog

= servo =

servo-specific python code e.g. implementations of mach commands. This is the canonical repository for this code.

== toml ==

Python module for reading toml files.

This can be updated from https://github.com/uiri/toml