Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
PIP_PROGRESS_BAR: off

jobs:
python-lint:
code-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -35,18 +35,6 @@ jobs:
- run: uv tool install pre-commit
- run: pre-commit run -a --show-diff-on-failure

frontend-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Run Eslint
run: npm run precommit

frontend-build:
runs-on: ubuntu-latest
defaults:
Expand Down Expand Up @@ -80,7 +68,7 @@ jobs:
path: frontend/build

python-test:
needs: [python-lint, frontend-build]
needs: [code-lint, frontend-build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ repos:
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- repo: local
hooks:
- id: frontend-pre-commit
name: frontend-pre-commit
entry: bash -c "cd frontend && npm install && npm run precommit"
language: system
pass_filenames: false
2 changes: 0 additions & 2 deletions frontend/.husky/pre-commit

This file was deleted.

108 changes: 46 additions & 62 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"test": "jest",
"test:update-snapshots": "jest -u",
"generate-api": "npx @rtk-query/codegen-openapi openapi-config.ts",
"prepare": "cd .. && husky frontend/.husky",
"precommit": "lint-staged"
},
"devDependencies": {
Expand Down Expand Up @@ -59,7 +58,7 @@
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"enzyme": "^3.11.0",
"eslint": "^9.28.0",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-i18n": "^2.4.0",
"eslint-plugin-prettier": "^5.4.1",
Expand All @@ -69,7 +68,6 @@
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.3",
"http-proxy-middleware": "^2.0.6",
"husky": "^9.1.7",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-styled-components": "^7.2.0",
Expand Down
Loading