Skip to content

Commit

Permalink
Use a different lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonZacharie committed May 11, 2024
1 parent 1d6f13f commit ecdf064
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,28 @@ permissions:

jobs:
lint:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
use_pyproject: true

- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: "3.11"
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "."
use_pyproject: true

test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -44,7 +49,7 @@ jobs:
with:
parallel: true
flag-name: Unit Test

report:
needs: test
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ignore_missing_imports = true

[tool.black]
target-version = ["py311"]
required-version = 24

[tool.isort]
profile = "black"
Expand Down

0 comments on commit ecdf064

Please sign in to comment.