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 2bb9a4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
name: Chess.py

on:
push:
Expand All @@ -16,21 +13,25 @@ jobs:
lint:
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@v5
with:
python-version: "3.11"
- uses: psf/black@stable
with:
options: "--check --verbose"
use_pyproject: true

test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -44,7 +45,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.4.2"

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

0 comments on commit 2bb9a4c

Please sign in to comment.