Fix open source lint errors #874
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
ufmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Install ufmt | |
run: pip install ufmt==2.8.0 black==24.4.2 ruff-api==0.1.0 | |
- name: Add configuration for ufmt | |
run: echo -e '[tool.ufmt]\nformatter = "ruff-api"\nsorter = "ruff-api"' > pyproject.toml | |
- name: Run ufmt | |
run: ufmt diff sapp scripts | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Install flake8 | |
run: pip install flake8==6.1.0 | |
- name: Run flake8 | |
run: flake8 | |
ESLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install packages and run ESLint | |
run: | | |
cd sapp/ui/frontend | |
npm install | |
npm install -g eslint | |
BABEL_ENV=development npm run lint |