Fix requirements #10
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: Lint | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install requirements | |
run: pip install --upgrade isort yapf flake8 | |
- name: Check code style | |
run: | | |
isort --df configs datasets models tools | |
yapf -dr configs datasets models tools | |
flake8 configs datasets models tools |