Skip to content

Commit a8014c5

Browse files
committed
ruff: add future import annotations, exclude files
1 parent 3186a32 commit a8014c5

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

pytest_httpserver/blocking_httpserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from queue import Empty
24
from queue import Queue
35
from ssl import SSLContext

pytest_httpserver/httpserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import abc
24
import ipaddress
35
import json

tests/test_parse_qs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import urllib.parse
24
from typing import List
35
from typing import Tuple

tests/test_release.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# TODO: skip if poetry is not available or add mark to test it explicitly
2-
1+
from __future__ import annotations
32

43
import email
54
import re
@@ -15,6 +14,9 @@
1514
import pytest
1615
import toml
1716

17+
# TODO: skip if poetry is not available or add mark to test it explicitly
18+
19+
1820
pytestmark = pytest.mark.release
1921

2022
NAME = "pytest-httpserver"

0 commit comments

Comments
 (0)