Skip to content

Commit

Permalink
Make black ignore imported python files used to build hosts releases
Browse files Browse the repository at this point in the history
While building releases, a pile of python gets imported into the
per-host directories. If black gets run afterwards, it tries to go
'fix' all of that stuff. Ignore those files to avoid doing that.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed May 18, 2020
1 parent cdfbe5c commit 8e703be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -36,7 +36,7 @@ FORCE:

check: all
+cd test && make $@
+black --check --exclude 'fail-syntax-.*\.py' .
+black --check --exclude 'fail-syntax-.*\.py|.*/hosts/.*.py' .

SHAREFILES = \
snek.defs \
Expand Down

0 comments on commit 8e703be

Please sign in to comment.