diff --git a/Makefile b/Makefile index d783ed8..f88a705 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # Updated: 2022-09-01 # -.PHONY: build create-venv help prebuild publish test test-all test-doc update-venv +.PHONY: build create-venv help prebuild publish test test-all test-docs update-venv help: @echo "Usage: make []" @@ -22,7 +22,7 @@ help: @echo " create-venv Create the development Python virtual environment." @echo " test Run tests using the development virtual environment." @echo " test-all Run tests using Tox for all virtual environments." - @echo " test-doc Run tests using Tox for just documentation." + @echo " test-docs Run tests using Tox for just documentation." @echo " update-venv Update the development Python virtual environment." build: dist-build @@ -37,7 +37,7 @@ test: dev-test-primary test-all: dev-test-all -test-doc: dev-test-doc +test-docs: dev-test-docs update-venv: dev-venv-install @@ -52,13 +52,13 @@ VENV_DIR := ./dev/venv PYTHON := python3 VENV := ./dev/venv.sh "${VENV_DIR}" -.PHONY: dev-test-all dev-test-doc dev-test-primary dev-venv-base dev-venv-create dev-venv-install +.PHONY: dev-test-all dev-test-docs dev-test-primary dev-venv-base dev-venv-create dev-venv-install dev-test-all: ${VENV} tox -dev-test-doc: - ${VENV} tox -e doc +dev-test-docs: + ${VENV} tox -e docs dev-test-primary: ${VENV} python -m unittest -v diff --git a/pathspec/util.py b/pathspec/util.py index 54e1b2c..5883951 100644 --- a/pathspec/util.py +++ b/pathspec/util.py @@ -42,6 +42,9 @@ StrPath = Union[str, PathLike] TStrPath = TypeVar("TStrPath", bound=StrPath) +""" +Type variable for :class:`str` or :class:`os.PathLike`. +""" NORMALIZE_PATH_SEPS = [ __sep