Update CONTRIBUTING with new lint.sh features

pull/8472/head
Andrew Morgan 2020-10-06 14:27:35 +01:00
parent 6a8bc7684f
commit 4d077bb0a7
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ run-time:
./scripts-dev/lint.sh path/to/file1.py path/to/file2.py path/to/folder
```
You can also provided the `-d` option, which will lint the files that have been
changed since the last git commit. This will often be significantly faster than
linting the whole codebase.
Before pushing new changes, ensure they don't produce linting errors. Commit any
files that were corrected.