chore: Start making use of Mozilla's linter, p=#12656

This commit is contained in:
mr. m
2026-03-07 12:15:32 +01:00
committed by GitHub
parent 7c8ccdedd4
commit 0ee960e3a3
78 changed files with 712 additions and 4842 deletions

View File

@@ -28,20 +28,32 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Setup and run autopep8
if: ${{ contains(join(github.event.commits.*.modified, ' '), '.py') || contains(join(github.event.commits.*.added, ' '), '.py') || contains(join(github.event.commits.*.removed, ' '), '.py') }}
run: |
sudo apt install python3-autopep8
autopep8 --diff scripts/ src/
- name: Install dependencies
run: npm ci
- name: Download Firefox
env:
ZEN_DOWNLOAD_DONT_INIT_GIT: "1"
- name: Restore Surfer engine cache
id: surfer-engine-cache
uses: actions/cache@v4
with:
path: .surfer/engine/*.tar
key: surfer-engine-${{ hashFiles('surfer.json') }}
- name: Setup Git
run: |
npm run download
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Download Firefox
run: npm run download
- name: Import patches
run: npm run import
- name: Add .hgignore file to the engine dir
run: touch engine/.hgignore
- name: Run Bootstrap
run: npm run bootstrap
- name: Lint
run: npm run lint