Skip to content

Commit

Permalink
chore: add dev config (#326)
Browse files Browse the repository at this point in the history
##### 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.
  • Loading branch information
jooola authored Sep 15, 2023
1 parent 2ab0ef6 commit 79f90b3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ansible-core>=2.13

# Collections requirements
netaddr
cryptography

python-dateutil
requests

# Development requirements
pylint

0 comments on commit 79f90b3

Please sign in to comment.