mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
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:
parent
2ab0ef6177
commit
79f90b3881
3 changed files with 39 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
|
@ -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
11
requirements.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
ansible-core>=2.13
|
||||
|
||||
# Collections requirements
|
||||
netaddr
|
||||
cryptography
|
||||
|
||||
python-dateutil
|
||||
requests
|
||||
|
||||
# Development requirements
|
||||
pylint
|
Loading…
Reference in a new issue