Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
hakancelikdev committed Feb 1, 2023
1 parent 51c5204 commit 264eb3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ exclude: tests/cases/(refactor|source).*

repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.1.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

Expand All @@ -19,31 +19,31 @@ repos:
- --config pyproject.toml

- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
rev: v1.6.0.rc1
hooks:
- id: docformatter
args: [--config=pyproject.toml]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.991
hooks:
- id: mypy
additional_dependencies: [types-toml==0.1.3]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.3
rev: v3.0.0-alpha.4
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
files: "\\.(py|.txt|.yaml|.json|.in|.md|.toml|.cfg|.html|.yml)$"

- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand Down
1 change: 0 additions & 1 deletion src/unimport/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def get_spec(package: str) -> Optional[importlib.machinery.ModuleSpec]:
@functools.lru_cache(maxsize=128)
def is_std(package: str) -> bool:
"""Returns True if package module came with from Python."""

if package in C.BUILTIN_MODULE_NAMES:
return True
spec = get_spec(package)
Expand Down

0 comments on commit 264eb3e

Please sign in to comment.