update doc build script #12
Workflow file for this run
This file contains 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
# Lint the code using the defined pre-commits | |
name: LintCode | |
on: [push] | |
jobs: | |
lint_code: | |
runs-on: ubuntu-latest | |
# only run if CI isn't turned off | |
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'no_ci') | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install linting packages | |
run: pip install pre-commit | |
- name: run all precommits | |
run: pre-commit run flake8 --files src/**/* |