@@ -67,14 +67,42 @@ The two main autoformatters that we use are
6767 - ` black ` : General Python formatting
6868 - ` isort ` : Import sorting
6969
70- ## Statement of Support
71-
72- This software is provided as-is, without warranty of any kind or
73- commercial support through Delphix. See the associated license for
74- additional details. Questions, issues, feature requests, and
75- contributions should be directed to the community as outlined in the
76- [ Delphix Community
77- Guidelines] ( https://delphix.github.io/community-guidelines.html ) .
70+ ## Running the formatting
71+
72+ The formatting is automatically run remotely on every Github pull
73+ request and on every push to Github.
74+
75+ It is possible to run these locally in two ways. Automatically before
76+ every push and manually.
77+
78+ To have the checks run automatically before every push you can enable
79+ ` pre-commit ` .
80+
81+ ```
82+ tox
83+ .tox/format/bin/pre-commit install --hook-type pre-push
84+ ```
85+
86+ To run the checks manually:
87+ On the entire repository
88+ ```
89+ tox -- --all-files
90+ ```
91+ on a specific file
92+ ```
93+ tox -- --file <file-name>
94+ ```
95+ On every file in the most recent commit
96+ ```
97+ git diff-tree --no-commit-id --name-only -r HEAD | xargs tox -- --files
98+ ```
99+
100+ ## Something neat worth noting
101+
102+ Each of the scripts leverage
103+ [ docopt] ( https://github.com/docopt/docopt ) , which is a great module
104+ for parsing POSIX compliant help documentation as arguments. It's
105+ really awesome.
78106
79107## License
80108
0 commit comments