diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a5a0b3..fabe0db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,15 +14,15 @@ repos: - flake8-builtins - flake8-comprehensions - repo: https://github.com/PyCQA/isort - rev: c5e8fa75dda5f764d20f66a215d71c21cfa198e1 # frozen: 5.10.1 + rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black - rev: 2ddea293a88919650266472186620a98a4a8bb37 # frozen: 22.12.0 + rev: b0d1fba7ac3be53c71fb0d3211d911e629f8aecb # frozen: 23.1.0 hooks: - id: black - repo: https://github.com/PyCQA/docformatter - rev: 8b8dae1d990e2e4fec7ff6704a79c23a403cd605 # frozen: v1.5.0 + rev: 11d9a03865ae1f859d56517daec72e4f9f2401f0 # frozen: v1.5.1 hooks: - id: docformatter - repo: https://github.com/pre-commit/pre-commit-hooks @@ -30,7 +30,7 @@ repos: hooks: - id: check-yaml - repo: https://github.com/pre-commit/pygrep-hooks - rev: 6f51a66bba59954917140ec2eeeaa4d5e630e6ce # frozen: v1.9.0 + rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0 hooks: - id: python-use-type-annotations - id: python-check-blanket-noqa @@ -44,7 +44,7 @@ repos: - flake8-builtins - flake8-comprehensions - repo: https://github.com/pre-commit/mirrors-mypy - rev: 0b037c2b59aa62dc3be3287d175295f1a5547eb9 # frozen: v0.991 + rev: b176ead5d5b92b1d4e651c118017f8fd32de424a # frozen: v1.1.1 hooks: - id: mypy args: ["--scripts-are-modules"] diff --git a/src/mdurl/_parse.py b/src/mdurl/_parse.py index ffeeac7..1bfdd99 100644 --- a/src/mdurl/_parse.py +++ b/src/mdurl/_parse.py @@ -152,7 +152,6 @@ def parse(self, url: str, slashes_denote_host: bool) -> "MutableURL": if not HOSTLESS_PROTOCOL[proto] and ( slashes or (proto and not SLASHED_PROTOCOL[proto]) ): - # there's a hostname. # the first instance of /, ?, ;, or # ends the host. #