ci
A script for running as part of a CI system.
It currently only runs Pylint on any .py files in the directory. Pylint checks for style and some common errors. See the .pylintrc file for Pylint config options. If you have an objection with the style, make a PR to change it.
To run the script, just do:
$ python ci.py
in the same directory as ci.py.
- returns:
0 for success, non-zero for failure
- rtype:
A standard error code
- ci.get_files_to_check(directory: str) Iterable[str] [source]
Iterate over the files to check in the directory.
- Parameters:
directory – The directory to check files in
- Returns:
An iterator over the Python files
- ci.lint(file: str) None [source]
Call pylint on a file.
- Parameters:
file – The relative path of the file to ci.py