Skip to content

Commit 423c4d6

Browse files
adam-grant-hendryLee-W
authored andcommitted
fix(scripts/test): MinGW64 workaround
Pipe appears broken in certain instances within the version of MinGW64 that ships as Git Bash in Git for Windows. See: - https://sourceforge.net/p/mingw/bugs/2303/ - msys2/MINGW-packages#13662
1 parent 09b2a9f commit 423c4d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env sh
22
set -e
33

4-
export PREFIX="poetry run python -m "
4+
export PREFIX='poetry run python -m '
5+
export REGEX='^(?![.]|venv).*'
56

67
${PREFIX}pytest -n 3 --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
78
${PREFIX}black commitizen tests --check
89
${PREFIX}isort --check-only commitizen tests
910
${PREFIX}flake8 commitizen/ tests/
1011
${PREFIX}mypy commitizen/ tests/
11-
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415 --match-dir="^(?![.]|venv).*"
12+
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415 --match-dir='"${REGEX}"'
1213
${PREFIX}commitizen check --rev-range origin/master..

0 commit comments

Comments
 (0)