mirror of
https://github.com/google/brotli.git
synced 2024-11-24 20:40:13 +00:00
b04f4ea185
Also, add a `yapf` section to `setup.cfg` to ensure YAPF runs format code with the Google style. |
||
---|---|---|
.. | ||
tests | ||
_brotli.cc | ||
bro.py | ||
brotli.py | ||
README.md |
This directory contains the code for the Python brotli
module,
bro.py
tool, and roundtrip tests.
Development
To build the module, execute the following from the root project directory:
$ python setup.py build_ext
To test the module, execute the following from the root project directory:
$ python setup.py test
Code Style
Brotli's code follows the Google Python Style Guide. To automatically format your code, install YAPF:
$ pip install yapf
Then, either format a single file:
$ yapf --in-place FILE
Or, format all files in a directory:
$ yapf --in-place --recursive DIR
See the YAPF usage documentation for more information.