Skip to content

Commit

Permalink
makefile and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Dec 6, 2024
1 parent 083062e commit b3fd4fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Install React app
run: npm ci

- name: Run prettier
run: make prettier-check

- name: Build images
run: make build

Expand Down
8 changes: 8 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,23 @@ ruff-check: # Run ruff in check mode
ruff: # Run ruff
$(run-host) ruff check --fix .

prettier-check:
npx prettier . --check

prettier:
npx prettier . --write

check: # Run formatters to see if there are any errors
make ruff-check
make black-check
make isort-check
make prettier-check

fix: # Run formatters to fix any issues that can be fixed automatically
make ruff
make black
make isort
make prettier

# Front End
webpack: # Run webpack
Expand Down

0 comments on commit b3fd4fb

Please sign in to comment.