summaryrefslogtreecommitdiff
path: root/bin/style-check
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2022-04-28 22:53:19 -0400
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commit1140be3cefcf070b03fd219c64a1f015db5ef510 (patch)
tree8269c8071a6d9e30fd906a05d9b29910c0fccdd1 /bin/style-check
parentf4e1bbc7d7697f994add0baa0f2749ed7d02c0d5 (diff)
only check style on lines changed by commit
Diffstat (limited to 'bin/style-check')
-rwxr-xr-xbin/style-check2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/style-check b/bin/style-check
index ead4d553..bafd6e74 100755
--- a/bin/style-check
+++ b/bin/style-check
@@ -2,5 +2,7 @@
# 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=pyembroidery,__init__.py,electron,build,src,dist "${@:-.}"