Auto-update pre-commit hooks (#3780)

* Auto-update pre-commit hooks

* Run 'pre-commit run -a'

* Fix pyupgrade into generated project

Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
github-actions[bot] 2022-07-26 23:37:02 +01:00 committed by GitHub
parent c19f600858
commit 419f6b0e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,7 @@ repos:
- id: check-yaml - id: check-yaml
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.34.0 rev: v2.37.3
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py39-plus] args: [--py39-plus]

View File

@ -11,8 +11,9 @@ from __future__ import annotations
import os import os
import re import re
import sys import sys
from collections.abc import Iterable
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING, Any, Iterable, NamedTuple from typing import TYPE_CHECKING, Any, NamedTuple
import requests import requests
from github import Github from github import Github

View File

@ -1,8 +1,8 @@
import datetime as dt import datetime as dt
import os import os
import re import re
from collections.abc import Iterable
from pathlib import Path from pathlib import Path
from typing import Iterable
import git import git
import github.PullRequest import github.PullRequest

View File

@ -10,7 +10,7 @@ repos:
- id: check-yaml - id: check-yaml
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.34.0 rev: v2.37.3
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py39-plus] args: [--py39-plus]

View File

@ -1,6 +1,6 @@
import os import os
from collections.abc import Sequence
from pathlib import Path from pathlib import Path
from typing import Sequence
import pytest import pytest

View File

@ -1,4 +1,5 @@
from typing import Any, Sequence from collections.abc import Sequence
from typing import Any
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from factory import Faker, post_generation from factory import Faker, post_generation