| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d9fdf1d commit fdec039
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,3 +27,11 @@ jobs: | |||
| 27 | 27 | with: | |
| 28 | 28 | fetch-depth: 0 | |
| 29 | 29 | - uses: wagoid/commitlint-github-action@v2 | |
| 30 | + | ||
| 31 | + mypy: | ||
| 32 | + runs-on: ubuntu-latest | ||
| 33 | + steps: | ||
| 34 | + - uses: actions/checkout@v2 | ||
| 35 | + - uses: actions/setup-python@v2 | ||
| 36 | + - run: pip install --upgrade tox | ||
| 37 | + - run: tox -e mypy | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + [mypy] | ||
| 2 | + files = gitlab/*.py | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -193,7 +193,7 @@ def main(): | |||
| 193 | 193 | # Now we build the entire set of subcommands and do the complete parsing | |
| 194 | 194 | parser = _get_parser(gitlab.v4.cli) | |
| 195 | 195 | try: | |
| 196 | - import argcomplete | ||
| 196 | + import argcomplete # type: ignore | ||
| 197 | 197 | ||
| 198 | 198 | argcomplete.autocomplete(parser) | |
| 199 | 199 | except Exception: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ | |||
| 25 | 25 | import gitlab.const | |
| 26 | 26 | import gitlab.exceptions | |
| 27 | 27 | from gitlab import utils | |
| 28 | - from requests_toolbelt.multipart.encoder import MultipartEncoder | ||
| 28 | + from requests_toolbelt.multipart.encoder import MultipartEncoder # type: ignore | ||
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | 31 | REDIRECT_MSG = ( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | coverage | |
| 2 | 2 | httmock | |
| 3 | 3 | mock | |
| 4 | + mypy | ||
| 4 | 5 | pytest | |
| 5 | 6 | pytest-cov | |
| 6 | 7 | responses | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | [tox] | |
| 2 | 2 | minversion = 1.6 | |
| 3 | 3 | skipsdist = True | |
| 4 | - envlist = py39,py38,py37,py36,pep8,black,twine-check | ||
| 4 | + envlist = py39,py38,py37,py36,pep8,black,twine-check,mypy | ||
| 5 | 5 | ||
| 6 | 6 | [testenv] | |
| 7 | 7 | passenv = GITLAB_IMAGE GITLAB_TAG | |
@@ -35,6 +35,13 @@ deps = -r{toxinidir}/requirements.txt | |||
| 35 | 35 | commands = | |
| 36 | 36 | twine check dist/* | |
| 37 | 37 | ||
| 38 | + [testenv:mypy] | ||
| 39 | + basepython = python3 | ||
| 40 | + deps = -r{toxinidir}/requirements.txt | ||
| 41 | + -r{toxinidir}/test-requirements.txt | ||
| 42 | + commands = | ||
| 43 | + mypy {posargs} | ||
| 44 | + | ||
| 38 | 45 | [testenv:venv] | |
| 39 | 46 | commands = {posargs} | |
| 40 | 47 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments