diff --git a/.circleci/config.yml b/.circleci/config.yml index 90e62ff4..706e8e41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,10 @@ jobs: name: Set up virtual environment command: | pipenv sync --dev - - run: pipenv run playwright install --with-deps chromium + + - run: pipenv run ruff check . + - run: ./scripts/lint.sh + - run: ./scripts/format.sh - run: make lambda-layers/DependenciesLayer/requirements.txt - run: npm install - run: npm run build diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 00000000..0f425227 --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -euxo pipefail + +pipenv run ruff format . --check diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 00000000..a7e4d875 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -euxo pipefail + +pipenv run ruff check .