blob: fa4cc745561a2e40793ae3535ae5ba6ab2c0ab76 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
# Checks Python coding style based on our project's preferences. Checks the
# files passed on the command-line or everything if no files are passed.
# Instead of files, "--diff" may be passed to check only the lines changed
# by a diff piped to standard input.
flake8 --count --max-complexity=10 --max-line-length=150 --statistics --exclude=__init__.py,build,src,dist,./*-metadata.py,./pystitch-format-descriptions.py "${@:-.}"
|