Skip to content

Commit 84eb7cb

Browse files
committed
One command to lint
1 parent d3ca8ce commit 84eb7cb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ install: install-node install-python .git/hooks/pre-commit
1818

1919
#Run the npm linting script (specified in package.json). Used to check the syntax and formatting of files.
2020
lint:
21-
pyenv local $(pyenv versions --bare | grep '^3\.10' | sort -rV | head -n 1)
22-
npm run lint
23-
find . -name '*.py' -not -path '**/.venv/*' -not -path '**/.terraform/*'| xargs poetry run flake8
21+
@version=$$(pyenv versions --bare | grep '^3\.10' | sort -rV | head -n 1) && \
22+
pyenv local $$version && \
23+
npm run lint && \
24+
find . -name '*.py' \
25+
-not -path '*/.venv/*' \
26+
-not -path '*/.terraform/*' | xargs poetry run flake8
2427

2528
#Removes build/ + dist/ directories
2629
clean:

0 commit comments

Comments
 (0)