Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #454

Merged
merged 4 commits into from
Jan 29, 2024
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
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
Loading