Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/isort-and-black-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install click
run: pip install 'click==8.0.4'
- name: Install Black
run: pip install 'black==22.3.0'
- name: Run black --check .
run: black --check .
- name: Install click, black and isort
run: pip install 'click==8.2.1' 'black==25.11.0' 'isort==5.13.2'
- name: Run black --check --diff .
run: black --check --diff .
- name: If needed, commit black changes to the pull request
if: failure()
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace
exclude: ChangeLog-spell-corrected.diff
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.11.0
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion rst2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def yield_sphinx_only_markup(lines):

def clean_line(line):
try:
for (regex, sub) in regex_subs:
for regex, sub in regex_subs:
line = regex.sub(sub, line)
except Exception as ex:
print(f"ERROR: {regex}, (line({sub})")
Expand Down