Skip to content

Commit

Permalink
[formatting] place black version in toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
loukylor committed Oct 25, 2024
1 parent 8a2e00a commit 53bf905
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Black
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"
use_pyproject: true
version: "~= 24.8.0"
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.10.12
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pylint==3.2.7 mypy==1.11.2
- name: Run Pylint
run: |
pylint $(git ls-files "*.py")
- name: Run Mypy
run: |
mypy $(git ls-files "*.py")
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Black
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"
use_pyproject: true
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.10.12
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pylint==3.2.7 mypy==1.11.2
- name: Run Pylint
run: |
pylint $(git ls-files "*.py")
- name: Run Mypy
run: |
mypy $(git ls-files "*.py")
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[tool.black]
line-length = 100
[tool.black]
line-length = 100
required-version = 24.8.0

0 comments on commit 53bf905

Please sign in to comment.