File: run_tests.bat

package info (click to toggle)
gitlint 0.19.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,144 kB
  • sloc: python: 6,728; sh: 74; makefile: 17; javascript: 5
file content (15 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off

set arg1=%1

IF "%arg1%"=="-p" (
    echo Running flake8...
    flake8 --extend-ignore=H307,H405,H803,H904,H802,H701 --max-line-length=120 --exclude="*settings.py,*.venv/*.py" gitlint qa examples
) ELSE (
    :: Run passed arg, or all unit tests if passed arg is empty
    IF "%arg1%" == "" (
        pytest -rw -s gitlint
    ) ELSE (
        pytest -rw -s %arg1%
    )
)