Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#454)
Browse files Browse the repository at this point in the history
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.3.0...v4.5.0)
- [github.com/hadialqattan/pycln: v1.3.5 → v2.4.0](hadialqattan/pycln@v1.3.5...v2.4.0)
- [github.com/asottile/yesqa: v1.3.0 → v1.5.0](asottile/yesqa@v1.3.0...v1.5.0)
- [github.com/pycqa/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2)
- [github.com/psf/black: 22.6.0 → 24.1.1](psf/black@22.6.0...24.1.1)
- [github.com/asottile/pyupgrade: v2.34.0 → v3.15.0](asottile/pyupgrade@v2.34.0...v3.15.0)
- https://github.com/pre-commit/mirrors-autopep8https://github.com/hhatto/autopep8
- [github.com/hhatto/autopep8: v1.6.0 → v2.0.4](hhatto/autopep8@v1.6.0...v2.0.4)
- [github.com/PyCQA/flake8: 4.0.1 → 7.0.0](PyCQA/flake8@4.0.1...7.0.0)
- [github.com/adrienverge/yamllint: v1.26.3 → v1.33.0](adrienverge/yamllint@v1.26.3...v1.33.0)
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent f8f7c58 commit 765a75d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
rev: "v4.5.0"
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
Expand All @@ -24,34 +24,34 @@ repos:
- id: detect-private-key
exclude: ^examples|(?:tests/ssl)/
- repo: https://github.com/hadialqattan/pycln
rev: v1.3.5
rev: v2.4.0
hooks:
- id: pycln
args: ["--all"]
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
rev: "5.13.2"
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: "22.6.0"
rev: "24.1.1"
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: "v2.34.0"
rev: "v3.15.0"
hooks:
- id: pyupgrade
args: ["--py37-plus", "--keep-mock"]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: "v1.6.0"
- repo: https://github.com/hhatto/autopep8
rev: "v2.0.4"
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
rev: "7.0.0"
hooks:
- id: flake8
exclude: "^docs/"
Expand All @@ -61,6 +61,6 @@ repos:
- id: rst-linter
files: ^[^/]+[.]rst$
- repo: https://github.com/adrienverge/yamllint
rev: "v1.26.3"
rev: "v1.33.0"
hooks:
- id: yamllint
1 change: 1 addition & 0 deletions dbbackup/db/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Base database connectors
"""

import logging
import os
import shlex
Expand Down
1 change: 1 addition & 0 deletions dbbackup/management/commands/_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Abstract Command.
"""

import logging
import sys
from optparse import make_option as optparse_make_option
Expand Down
1 change: 1 addition & 0 deletions dbbackup/management/commands/mediarestore.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Restore media files.
"""

import tarfile

from django.core.files.storage import get_storage_class
Expand Down
1 change: 1 addition & 0 deletions dbbackup/storage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utils for handle files.
"""

import logging

from django.core.exceptions import ImproperlyConfigured
Expand Down
1 change: 1 addition & 0 deletions dbbackup/tests/commands/test_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for base command class.
"""

import logging
import os
from io import BytesIO
Expand Down
1 change: 1 addition & 0 deletions dbbackup/tests/commands/test_dbbackup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for dbbackup command.
"""

import os

from django.test import TestCase
Expand Down
1 change: 1 addition & 0 deletions dbbackup/tests/commands/test_dbrestore.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for dbrestore command.
"""

from shutil import copyfileobj
from tempfile import mktemp

Expand Down
1 change: 1 addition & 0 deletions dbbackup/tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Configuration and launcher for dbbackup tests.
"""

import os
import sys
import tempfile
Expand Down
6 changes: 1 addition & 5 deletions dbbackup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@
from datetime import datetime
from functools import wraps
from getpass import getpass
from shlex import quote
from shutil import copyfileobj

from django.core.mail import EmailMultiAlternatives
from django.db import connection
from django.http import HttpRequest
from django.utils import timezone

try:
from pipes import quote
except ImportError:
from shlex import quote

from . import settings

FAKE_HTTP_REQUEST = HttpRequest()
Expand Down

0 comments on commit 765a75d

Please sign in to comment.