chore: add dev config (#326)

##### SUMMARY

Add configuration files to simplify the dev setup for the project. This
will help IDEs to provide insight during development.

Pylint is already run by the ansible-test sanity checks.
This commit is contained in:
Jonas L 2023-09-15 10:25:22 +02:00 committed by GitHub
parent 2ab0ef6177
commit 79f90b3881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View file

@ -4,6 +4,13 @@ SHELL := bash
vendor:
python3 scripts/vendor.py
venv:
python3 -m venv venv
venv/bin/pip install -r requirements.txt
lint: venv
venv/bin/pylint plugins
clean:
git clean -xdf \
-e tests/integration/cloud-config-hcloud.ini

View file

@ -4,3 +4,24 @@ line-length = 120
[tool.isort]
profile = "black"
combine_as_imports = true
[tool.pylint.main]
py-version = "3.8"
recursive = true
jobs = 0
max-line-length = 120
ignore-paths = [
"plugins/module_utils/vendor",
]
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.basic]
good-names = ["i", "j", "k", "ex", "_", "ip", "id"]
[tool.pylint.messages_control]
disable = [
"wrong-import-position",
]

11
requirements.txt Normal file
View file

@ -0,0 +1,11 @@
ansible-core>=2.13
# Collections requirements
netaddr
cryptography
python-dateutil
requests
# Development requirements
pylint