Skip to content

Commit c0bfd76

Browse files
authored
Merge pull request #195 from 56kyle/release/1.1.0
Release/1.1.0
2 parents e6cc072 + 6ad52ef commit c0bfd76

File tree

18 files changed

+692
-426
lines changed

18 files changed

+692
-426
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 2
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: "3.12"
2727

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/checkout@v4
3939

4040
- name: Set up Python ${{ matrix.python }}
41-
uses: actions/setup-python@v4.6.1
41+
uses: actions/setup-python@v5
4242
with:
4343
python-version: ${{ matrix.python }}
4444

@@ -101,6 +101,7 @@ jobs:
101101
with:
102102
name: coverage-data
103103
path: ".coverage.*"
104+
include-hidden-files: true
104105

105106
- name: Upload documentation
106107
if: matrix.session == 'docs-build'
@@ -117,7 +118,7 @@ jobs:
117118
uses: actions/checkout@v4
118119

119120
- name: Set up Python
120-
uses: actions/setup-python@v4.6.1
121+
uses: actions/setup-python@v5
121122
with:
122123
python-version: "3.12"
123124

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
furo==2022.12.7
1+
furo==2024.8.6
22
sphinx==8.0.2
33
sphinx-click==6.0.0
44
myst_parser==4.0.0

poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pytest-static"
3-
version = "1.0.4"
3+
version = "1.1.0"
44
description = "pytest-static"
55
authors = ["Kyle Oliver <56kyleoliver@gmail.com>"]
66
license = "MIT"

src/pytest_static/custom_typing.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
"""Module containing custom types used throughout pytest-static."""
2+
3+
from typing import Any
4+
from typing import Callable
5+
from typing import Generator
6+
from typing import TypeVar
7+
from typing import Union
8+
9+
from typing_extensions import Literal
10+
from typing_extensions import ParamSpec
11+
12+
13+
__all__: list[str] = [
14+
"_UnionGenericAlias",
15+
"_LiteralSpecialForm",
16+
"_ScopeName",
17+
"T",
18+
"KT",
19+
"VT",
20+
"T_co",
21+
"P",
22+
"TypeHandler",
23+
]
24+
25+
26+
_UnionGenericAlias = type(Union)
27+
_LiteralSpecialForm = type(Literal)
28+
29+
30+
# Redefines pytest's typing for 100% test coverage
31+
_ScopeName = Literal["session", "package", "module", "class", "function"]
32+
33+
34+
T = TypeVar("T")
35+
KT = TypeVar("KT")
36+
VT = TypeVar("VT")
37+
38+
T_co = TypeVar("T_co", covariant=True)
39+
40+
P = ParamSpec("P")
41+
42+
43+
class Missing:
44+
"""Custom missing class used for a lack of a passed value that counts None as a value."""
45+
46+
47+
MISSING: Missing = Missing()
48+
49+
50+
TypeHandler = Callable[[Any, tuple[Any, ...]], Generator[Any, None, None]]

src/pytest_static/exceptions.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)