Skip to content

Commit

Permalink
Fixed makefile for Linux and fixed Unsettable type for <py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzeynalli committed Feb 17, 2025
1 parent 6437f70 commit d3d1f7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ test-live: .uv
ifeq ($(OS),Windows_NT)
@FOR %%v IN ($(PYTHON_VERSIONS)) DO \
uv venv --python %%v .venvs\%%v & \
uv run coverage run --data-file=coverage\.coverage.py%%v -m pytest --durations=10
set "VIRTUAL_ENV=.venvs\%%v" & \
uv run --active coverage run --data-file=coverage\.coverage.py%%v -m pytest --durations=10
else
for v in ${PYTHON_VERSIONS}; do \
uv venv --python $$v .venvs/$$v & \
uv run coverage run --data-file=coverage/.coverage.py$$v -m pytest --durations=10; \
uv run --python .venvs/$$v/bin/python coverage run --data-file=coverage/.coverage.py$$v -m pytest --durations=10; \
done
endif

Expand All @@ -45,11 +46,12 @@ test-local: .uv
ifeq ($(OS),Windows_NT)
@FOR %%v IN ($(PYTHON_VERSIONS)) DO \
uv venv --python %%v .venvs\%%v & \
uv run coverage run --data-file=coverage\.coverage.py%%v -m pytest -m "not live" --durations=10
set "VIRTUAL_ENV=.venvs\%%v" & \
uv run --active coverage run --data-file=coverage\.coverage.py%%v -m pytest -m "not live" --durations=10
else
for v in ${PYTHON_VERSIONS}; do \
uv venv --python $$v .venvs/$$v & \
uv run coverage run --data-file=coverage/.coverage.py$$v -m pytest -m "not live" --durations=10; \
VIRTUAL_ENV=.venvs/$$v uv run --active coverage run --data-file=coverage/.coverage.py$$v -m pytest -m "not live" --durations=10; \
done
endif

Expand Down
6 changes: 3 additions & 3 deletions src/integrify/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from typing import TypeVar, Union
from typing import Literal, TypeVar, Union

from pydantic import BaseModel

Expand All @@ -11,8 +11,8 @@
_UNSET = object()
"""Unset arguments"""

Unsettable = Union[T, _UNSET] # type: ignore[valid-type]
UnsettableAndNone = Union[T, _UNSET, None] # type: ignore[valid-type]
Unsettable = Union[T, Literal[_UNSET]] # type: ignore[valid-type]
UnsettableAndNone = Union[T, Literal[_UNSET], None] # type: ignore[valid-type]


class Environment(str, Enum):
Expand Down

0 comments on commit d3d1f7c

Please sign in to comment.