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 #45

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ ci:

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.11.0
rev: v0.11.1
hooks:
- id: reformat-pyproject

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -62,15 +62,15 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.17.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.5
hooks:
- id: remove-crlf
- id: forbid-crlf
Expand Down
4 changes: 2 additions & 2 deletions southwark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ def clone(
target_config = r.get_config()

target_config.set(("remote", origin), "url", source.encode("UTF-8"))
target_config.set(("remote", origin), "fetch", f"+refs/heads/*:refs/remotes/{origin}/*".encode("UTF-8"))
target_config.set(("remote", origin), "fetch", f"+refs/heads/*:refs/remotes/{origin}/*".encode())
target_config.write_to_path()
fetch_result = fetch(
r,
origin,
errstream=errstream,
message=f"clone: from {source}".encode("UTF-8"),
message=f"clone: from {source}".encode(),
depth=depth,
**kwargs,
)
Expand Down
4 changes: 2 additions & 2 deletions southwark/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def set_remote_ssh(config: ConfigFile, domain: str, username: str, repo: str, na
:param name: The name of the remote to set.
"""

config.set(("remote", name), "url", f"git@{domain}:{username}/{repo}.git".encode("UTF-8"))
config.set(("remote", name), "url", f"git@{domain}:{username}/{repo}.git".encode())


def set_remote_http(config: ConfigFile, domain: str, username: str, repo: str, name: str = "origin") -> None:
Expand All @@ -76,7 +76,7 @@ def set_remote_http(config: ConfigFile, domain: str, username: str, repo: str, n
:param name: The name of the remote to set.
"""

config.set(("remote", name), "url", f"https://{domain}/{username}/{repo}.git".encode("UTF-8"))
config.set(("remote", name), "url", f"https://{domain}/{username}/{repo}.git".encode())


set_remote_html = set_remote_http
Expand Down
Loading