Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
tox: add mypy env and some minor improvments
Browse files Browse the repository at this point in the history
- add mypy env
- pytest accepts a parameter
- `generate` builds the module in the output directory
  • Loading branch information
goneri committed Dec 20, 2022
1 parent f0c0499 commit 299a4ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output/
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest -vvv {posargs} {toxinidir}/vmware_rest_code_generator/
pytest -vvv {posargs:{toxinidir}/vmware_rest_code_generator/}

[testenv:black]
deps =
Expand All @@ -25,6 +25,12 @@ commands =
black -v --check {toxinidir}/vmware_rest_code_generator
flake8 {posargs} {toxinidir}/vmware_rest_code_generator

[testenv:mypy]
deps =
mypy
commands =
mypy vmware_rest_code_generator/

[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
Expand All @@ -35,4 +41,4 @@ exclude = .git,.tox,tests/unit/compat/

[testenv:generate]
usedevelop = True
commands = vmware_rest_code_generator_refresh_modules --target-dir {temp_dir}/modules
commands = vmware_rest_code_generator_refresh_modules --target-dir {toxinidir}/output

0 comments on commit 299a4ac

Please sign in to comment.