Skip to content

Commit

Permalink
Issue #16 Enable black github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Feb 5, 2024
1 parent 70fea1b commit 28388e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'isort==5.12.0' 'ruff==0.1.15'
python -m pip install 'isort==5.12.0' 'black==23.10.0' 'ruff==0.1.15'
- name: isort
run: python -m isort . --check --diff
# - name: black
# run: python -m black --check --diff .
- name: black
run: python -m black --check --diff .
- name: ruff
run: ruff check .
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repos:
hooks:
- id: auto-smart-commit
- repo: https://github.com/psf/black
rev: 23.10.0
rev: "23.10.0"
hooks:
- id: black
language_version: python3.9
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ junit_logging = "log" # Include logging output in JUnit XML report
profile = "black"


[tool.black]
line-length = 99


[tool.ruff]
# line-length = 100

Expand All @@ -77,4 +81,3 @@ ignore = [
"E501", # Ignore "line-too-long" issues, let black handle that.
]


0 comments on commit 28388e4

Please sign in to comment.