[pre-commit.ci] pre-commit autoupdate #327
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, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| - uses: psf/black@stable | |
| - name: Install node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '15.x' | |
| - name: lint javascript | |
| shell: bash -l {0} | |
| run: | | |
| npm install | |
| npm run lint-check | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| architecture: 'x64' | |
| - name: Install with dependencies | |
| shell: bash -l {0} | |
| run: pip install -e ".[test]" | |
| - name: lint python | |
| shell: bash -l {0} | |
| run: | | |
| black --check ipycytoscape setup.py docs/source/conf.py | |
| flake8 ipycytoscape setup.py docs/source/conf.py |