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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
exclude: ^tests/fixtures/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py38-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.13.0
hooks:
- id: mypy
exclude: ^(docs/|tests/)
Expand All @@ -31,7 +31,7 @@ repos:
hooks:
- id: gitlint
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
rev: v2.7.0
hooks:
- id: setup-cfg-fmt
args: [--min-py3-version, '3.8']
1 change: 1 addition & 0 deletions uritemplate/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This module contains the very simple API provided by uritemplate.

"""

import typing as t

from uritemplate import variable
Expand Down
2 changes: 1 addition & 1 deletion uritemplate/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
>

"""

import re
import typing as t

Expand All @@ -35,7 +36,6 @@ def _merge(


class URITemplate:

"""This parses the template and will be used to expand it.

This is the most important object as the center of the API.
Expand Down
8 changes: 4 additions & 4 deletions uritemplate/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
>

"""

import collections.abc
import typing as t
import urllib.parse
Expand All @@ -29,7 +30,6 @@


class URIVariable:

"""This object validates everything inside the URITemplate object.

It validates template expansions and will truncate length as decided by
Expand Down Expand Up @@ -59,9 +59,9 @@ def __init__(self, var: str):
#: List of safe characters when quoting the string
self.safe: str = ""
#: List of variables in this variable
self.variables: t.List[
t.Tuple[str, t.MutableMapping[str, t.Any]]
] = []
self.variables: t.List[t.Tuple[str, t.MutableMapping[str, t.Any]]] = (
[]
)
#: List of variable names
self.variable_names: t.List[str] = []
#: List of defaults passed in
Expand Down
Loading