add tox.ini to run linters

epel9
Maxwell G 1 year ago
parent bc04ccc9d3
commit f820268993
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -0,0 +1,34 @@
[tox]
env_list =
formatters
lint
typing-py{36,39,311,312}
[testenv:formatters]
description = Run formatters
skip_install = true
deps =
isort
black
commands =
black {posargs} ansible_collection.py ansible-generator
isort {posargs} ansible_collection.py ansible-generator
[testenv:lint]
description = Run linters
skip_install = true
deps =
ruff
commands =
ruff {posargs} ansible_collection.py ansible-generator
[testenv:typing-py{36,39,311,312}]
description = Run type checkers
skip_install = true
deps =
mypy
types-pyyaml
commands =
mypy {posargs} ansible_collection.py ansible-generator
set_env =
PYTHONPATH=${PWD}
Loading…
Cancel
Save