Skip to content

Commit 241ee99

Browse files
adam-grant-hendryLee-W
authored andcommitted
fix(scripts): pydocstyle and cz
For `pydocstyle`, use `--match-dir` switch to prevent traversal into `venv/` folder. For `commitizen`, use `cz` instead of `commitizen` as `cz` is present on all OS's, but `commitizen` is not present in `venv/Scripts` on Windows.
1 parent 17d0dc6 commit 241ee99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ ${PREFIX}black commitizen tests --check
2222
${PREFIX}isort --check-only commitizen tests
2323
${PREFIX}flake8 commitizen/ tests/
2424
${PREFIX}mypy commitizen/ tests/
25-
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415
26-
${PREFIX}commitizen check --rev-range origin/master..
25+
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415 --match-dir='^(?![.]|venv).*'
26+
${PREFIX}cz check --rev-range origin/master..

0 commit comments

Comments
 (0)