Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.1.1 (#391)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.1.1

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.1.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.1.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply formatting changes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt Bachmann <bachmann.matt@gmail.com>
  • Loading branch information
dependabot[bot] and Bachmann1234 committed Feb 1, 2024
1 parent 2daddab commit c9a79de
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 28 deletions.
8 changes: 5 additions & 3 deletions diff_cover/command_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ def execute(command, exit_codes=None):
sys.stderr.write(
" ".join(
[
cmd.decode(sys.getfilesystemencoding())
if isinstance(cmd, bytes)
else cmd
(
cmd.decode(sys.getfilesystemencoding())
if isinstance(cmd, bytes)
else cmd
)
for cmd in command
]
)
Expand Down
1 change: 1 addition & 0 deletions diff_cover/diff_reporter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for querying which lines have changed based on a diff.
"""

import fnmatch
import glob
import os
Expand Down
1 change: 1 addition & 0 deletions diff_cover/git_diff.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrapper for `git diff` command.
"""

from textwrap import dedent

from diff_cover.command_runner import CommandError, execute
Expand Down
1 change: 1 addition & 0 deletions diff_cover/git_path.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Converter for `git diff` paths
"""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions diff_cover/report_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for generating diff coverage reports.
"""

import contextlib
import json
import os
Expand Down
1 change: 1 addition & 0 deletions diff_cover/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Load snippets from source files to show violation lines
in HTML reports.
"""

import contextlib
from tokenize import open as openpy

Expand Down
48 changes: 24 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pyflakes = "^2.5.0"
pylint = "^3.0.3"
pylint-pytest = "^1.1.7"
pydocstyle = "^6.1.1"
black = "^23.12.1"
black = "^24.1.1"
isort = "^5.13.2"
doc8 = "1.1.1"

Expand Down
1 change: 1 addition & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test helper functions.
"""

import os.path
import random

Expand Down

0 comments on commit c9a79de

Please sign in to comment.