Update black
This commit is contained in:
parent
41cbf6d788
commit
955fb2723e
2 changed files with 5 additions and 2 deletions
|
@ -8,13 +8,13 @@ repos:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.3.0
|
rev: 23.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3
|
language_version: python3
|
||||||
files: ^maubot/.*\.pyi?$
|
files: ^maubot/.*\.pyi?$
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.10.1
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
files: ^maubot/.*\.pyi?$
|
files: ^maubot/.*\.pyi?$
|
||||||
|
|
|
@ -323,6 +323,7 @@ _zip_searchorder = (
|
||||||
(".py", False, False),
|
(".py", False, False),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Given a module name, return the potential file path in the
|
# Given a module name, return the potential file path in the
|
||||||
# archive (without extension).
|
# archive (without extension).
|
||||||
def _get_module_path(self, fullname):
|
def _get_module_path(self, fullname):
|
||||||
|
@ -351,6 +352,7 @@ def _get_module_info(self, fullname):
|
||||||
|
|
||||||
# implementation
|
# implementation
|
||||||
|
|
||||||
|
|
||||||
# _read_directory(archive) -> files dict (new reference)
|
# _read_directory(archive) -> files dict (new reference)
|
||||||
#
|
#
|
||||||
# Given a path to a Zip archive, build a dict, mapping file names
|
# Given a path to a Zip archive, build a dict, mapping file names
|
||||||
|
@ -524,6 +526,7 @@ cp437_table = (
|
||||||
|
|
||||||
_importing_zlib = False
|
_importing_zlib = False
|
||||||
|
|
||||||
|
|
||||||
# Return the zlib.decompress function object, or NULL if zlib couldn't
|
# Return the zlib.decompress function object, or NULL if zlib couldn't
|
||||||
# be imported. The function is cached when found, so subsequent calls
|
# be imported. The function is cached when found, so subsequent calls
|
||||||
# don't import zlib again.
|
# don't import zlib again.
|
||||||
|
|
Loading…
Reference in a new issue