refactor: restructure .gitignore #946
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
name: Code Format Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
name: Black | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
- name: Black | |
uses: psf/[email protected] # already includes args "--check --diff" | |
flake8: | |
runs-on: ubuntu-latest | |
name: Flake8 | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade wheel pip | |
pip install .[lint] | |
- name: Lint examples | |
run: flake8 examples --show-source | |
- name: Lint scripts | |
run: flake8 setup.py docs/conf.py scripts --show-source | |
- name: Lint tests | |
run: flake8 tests --show-source | |
- name: Lint moviepy | |
run: flake8 moviepy --show-source | |
isort: | |
runs-on: ubuntu-latest | |
name: isort | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort | |
- name: Check imports | |
run: isort --check-only moviepy tests examples docs/conf.py scripts |