Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 31, 2022
1 parent 091e5fb commit a8ebb13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.2.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
args: [--safe]
Expand Down Expand Up @@ -55,7 +55,7 @@ repos:
- flake8-noqa==1.2.9
- pep8-naming==0.13.2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
rev: "v3.0.0-alpha.4"
hooks:
- id: prettier
additional_dependencies:
Expand Down
3 changes: 1 addition & 2 deletions src/pyproject_api/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Please keep this file Python 2.7 compatible.
See https://tox.readthedocs.io/en/rewrite/development.html#code-style-guide
"""
from __future__ import print_function, unicode_literals

import importlib
import json
Expand Down Expand Up @@ -88,7 +87,7 @@ def run(argv):
raise
finally:
try:
with open(result_file, "wt") as file_handler:
with open(result_file, "w") as file_handler:
json.dump(result, file_handler)
except Exception:
traceback.print_exc()
Expand Down
2 changes: 1 addition & 1 deletion tests/demo_pkg_inline/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def prepare_metadata_for_build_editable(metadata_directory: str, config_settings
os.mkdir(dest)
for arc_name, data in content.items():
if arc_name.startswith(dist_info):
with open(os.path.join(metadata_directory, arc_name), "wt") as file_handler:
with open(os.path.join(metadata_directory, arc_name), "w") as file_handler:
file_handler.write(dedent(data).strip())
print("created metadata {}".format(dest))
if "PREPARE_EDITABLE_BAD" in os.environ:
Expand Down

0 comments on commit a8ebb13

Please sign in to comment.