diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..85e268a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ + +name: Lint + +on: [pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run isort + run: isort --check . + - name: Run black + run: black --check . diff --git a/requirements.txt b/requirements.txt index 4c1cdff..1c4a29e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,8 @@ sqlalchemy jinja2sql pydantic openai + +# Development dependencies +isort +black +