Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#88)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.7.0 → v3.9.0](asottile/pyupgrade@v3.7.0...v3.9.0)
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.0.275 → v0.0.278](astral-sh/ruff-pre-commit@v0.0.275...v0.0.278)
- [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jul 18, 2023
1 parent a06ed19 commit c2d5dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
repos:

- repo: https://github.com/asottile/pyupgrade
rev: v3.7.0
rev: v3.9.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand All @@ -14,8 +14,8 @@ repos:
- id: django-upgrade
args: ["--target-version", "3.0"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.275
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -27,7 +27,7 @@ repos:
args: ["--profile", "black"]

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black

Expand Down
4 changes: 2 additions & 2 deletions freeze/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def write(

include_static_dirs = isinstance(include_static, (list, tuple))

for root, dirs, files in os.walk(settings.FREEZE_STATIC_ROOT):
for root, _dirs, files in os.walk(settings.FREEZE_STATIC_ROOT):
include_dir = False
if include_static_dirs:
for static_dir in include_static:
Expand Down Expand Up @@ -124,7 +124,7 @@ def write(
logger.info("\ncopy media files...")

include_media_dirs = isinstance(include_media, (list, tuple))
for root, dirs, files in os.walk(settings.FREEZE_MEDIA_ROOT):
for root, _dirs, files in os.walk(settings.FREEZE_MEDIA_ROOT):
include_dir = False
if include_media_dirs:
for media_dir in include_media:
Expand Down

0 comments on commit c2d5dfb

Please sign in to comment.