Commit Graph

6 Commits

Author SHA1 Message Date
Dmitry Tantsur 3abffb4fd7 Use doc8 to verify rst instead of custom tests
Fix a disproportionally long line in dns-sd.

Change-Id: I9137ce1780e971824bffdd4e6557ddeb44c4db0b
2020-03-19 11:43:16 +01:00
Ed Leafe 6ad31a4923 Remove use of Python builtin name for variables
'file' is a Python builtin name, and should not be used for a variable
name.

Fixes-Bug: #1763469

Change-Id: Ifb0a3fe51f995cee5d703be23ea444da3e837be6
2018-04-12 17:55:07 +00:00
Ed Leafe e3d4507d10 Fix the checking of directories for extensions
The test for file extensions was checking everything returned by
glob.glob("guidelines/*"). The recent merge of the refactored HTTP
guidelines added a new guidelines/http/ directory, and the test was
failing because that entry didn't end with either .rst or .json. This
patch corrects that by skipping directories from that name check.

Change-Id: I0a84160015e9c1d96cb456b07c5e45fc6645df08
2018-04-12 17:40:40 +00:00
Monty Taylor 1c6fa5b335
Print name of violating file in unittest
Include the name of the file that violates the unittest name check in
the error message so that it's easy to track down the problem. Also,
exclude emacs autosave files from the list.

Change-Id: Ib6a8557ee2bc2262fb0235c5641bd9da70f66fe0
2017-05-04 22:54:39 -05:00
Everett Toews b29a4a3113 Allow JSON files for JSON Schemas and JSON examples
It's often much cleaner to be able to separate out JSON Schemas and JSON
examples into their own files. JSON doesn't allow for multiline strings
so don't check line length on JSON files.

Change-Id: Idf0dc2aa1fd1e10ed3dfb953838e6ea469c76933
2015-03-25 21:07:25 -05:00
Chris Yeoh e00144c3a0 Moves from markdown to rst
Changes format of files from markdown to reStructuredText
and adds the tox targets to verify the format and build
the html. Also adds bits and pieces needed to finish
bootstrapping the repository.

Change-Id: If559c21f19d7044a0d89b29e5743bf09c9da2ac1
2014-10-22 16:24:41 +10:30