Skip to content
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
rev: 'v6.0.0'
hooks:
- id: check-merge-conflict
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/PyCQA/isort
rev: '5.13.2'
rev: '9.0.0a3'
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: '24.10.0'
- repo: https://github.com/psf/black-pre-commit-mirror
rev: '26.5.1'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
rev: 'v6.0.0'
hooks:
- id: end-of-file-fixer
exclude: >-
Expand All @@ -44,12 +44,12 @@ repos:
args: ['--allow-missing-credentials']
- id: detect-private-key
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.19.1'
rev: 'v3.21.2'
hooks:
- id: pyupgrade
args: ['--py36-plus']
- repo: https://github.com/PyCQA/flake8
rev: '7.1.1'
rev: '7.3.0'
hooks:
- id: flake8
exclude: "^docs/"
Expand Down
1 change: 0 additions & 1 deletion aiozipkin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from .span import SpanAbc
from .tracer import Tracer, create, create_custom


__version__ = "1.1.1"
__all__ = (
"Tracer",
Expand Down
1 change: 0 additions & 1 deletion aiozipkin/aiohttp_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from .span import SpanAbc
from .tracer import Tracer


APP_AIOZIPKIN_KEY = "aiozipkin_tracer"
REQUEST_AIOZIPKIN_KEY = "aiozipkin_span"

Expand Down
1 change: 0 additions & 1 deletion aiozipkin/context_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
TypeVar,
)


T = TypeVar("T", bound=AsyncContextManager["T"]) # type: ignore


Expand Down
1 change: 0 additions & 1 deletion aiozipkin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from .mypy_types import Headers, OptBool, OptInt, OptStr, OptTs


# possible span kinds
CLIENT = "CLIENT"
SERVER = "SERVER"
Expand Down
1 change: 0 additions & 1 deletion aiozipkin/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

import logging


# Name the logger after the package.
logger = logging.getLogger(__package__)
1 change: 0 additions & 1 deletion aiozipkin/mypy_types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
from typing import Mapping, Optional


Headers = Mapping[str, str]
OptStr = Optional[str]
OptTs = Optional[float]
Expand Down
1 change: 0 additions & 1 deletion aiozipkin/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from .mypy_types import OptInt, OptStr, OptTs
from .record import Record


if TYPE_CHECKING:
from .tracer import Tracer

Expand Down
1 change: 0 additions & 1 deletion aiozipkin/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from .transport import StubTransport, Transport, TransportABC
from .utils import generate_random_64bit_string, generate_random_128bit_string


if TYPE_CHECKING:

class _Base(AsyncContextManager["Tracer"]):
Expand Down
1 change: 0 additions & 1 deletion aiozipkin/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .mypy_types import OptLoop
from .record import Record


DEFAULT_TIMEOUT = aiohttp.ClientTimeout(total=5 * 60)
BATCHES_MAX_COUNT = 10**4

Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import re
import sys


_docs_path = os.path.dirname(__file__)
_version_path = os.path.abspath(
os.path.join(_docs_path, "..", "aiozipkin", "__init__.py")
Expand Down
1 change: 0 additions & 1 deletion examples/microservices/service_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import aiozipkin as az


service_b_api = "http://127.0.0.1:9002/api/v1/data"
service_e_api = "http://127.0.0.1:9005/api/v1/data"
host = "127.0.0.1"
Expand Down
1 change: 0 additions & 1 deletion examples/microservices/service_b.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import aiozipkin as az


service_c_api = "http://127.0.0.1:9003/api/v1/data"
service_d_api = "http://127.0.0.1:9004/api/v1/data"
host = "127.0.0.1"
Expand Down
1 change: 0 additions & 1 deletion examples/microservices/service_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import aiozipkin as az


host = "127.0.0.1"
port = 9003

Expand Down
1 change: 0 additions & 1 deletion examples/microservices/service_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import aiozipkin as az


host = "127.0.0.1"
port = 9004

Expand Down
1 change: 0 additions & 1 deletion examples/microservices/service_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import aiozipkin as az


host = "127.0.0.1"
port = 9005

Expand Down
1 change: 0 additions & 1 deletion examples/queue/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import aiozipkin as az


page = """
<html lang="en">
<head>
Expand Down
Loading