-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
280 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
{ | ||
"extends": [ | ||
"github>maxhoesel-ansible/.github:renovate-config" | ||
] | ||
], | ||
"pip-compile": { | ||
"fileMatch": ["^requirements\\.txt$"] | ||
}, | ||
"pip_requirements": { | ||
"enabled": false | ||
}, | ||
"pip_setup": { | ||
"enabled": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Include a version of ansible-core for IDE hints and the default pytest version | ||
# It is also needed for docs generation. | ||
# | ||
# This installed version can be overriden by running pytest with the --ansible-version command. | ||
# Ideally pytest would install another venv just for the test, but the pytest-virtualenv package | ||
# is ancient and incompatible with python 3.12. | ||
ansible-core==2.17.0 | ||
|
||
# Linting & Formatting | ||
ansible-lint==24.6.0 | ||
pre-commit==3.7.1 | ||
|
||
# Requirements for running the tests for this role | ||
molecule==24.2.1 | ||
molecule-plugins[docker]==23.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Requirements for running molecule testing scenarios | ||
# These are not the collection runtime requirements | ||
collections: | ||
- name: community.docker | ||
version: "==3.4.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,163 @@ | ||
# Requirements for running the tests for this role | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile requirements.in | ||
# | ||
ansible-compat==24.6.1 | ||
# via | ||
# ansible-lint | ||
# molecule | ||
ansible-core==2.17.0 | ||
# via | ||
# -r requirements.in | ||
# ansible-compat | ||
# ansible-lint | ||
# molecule | ||
ansible-lint==24.6.0 | ||
# via -r requirements.in | ||
attrs==23.2.0 | ||
# via | ||
# jsonschema | ||
# referencing | ||
black==24.4.2 | ||
# via ansible-lint | ||
bracex==2.4 | ||
# via wcmatch | ||
certifi==2024.6.2 | ||
# via requests | ||
cffi==1.16.0 | ||
# via cryptography | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
click==8.1.7 | ||
# via | ||
# black | ||
# click-help-colors | ||
# molecule | ||
click-help-colors==0.9.4 | ||
# via molecule | ||
cryptography==42.0.8 | ||
# via ansible-core | ||
distlib==0.3.8 | ||
# via virtualenv | ||
distro==1.9.0 | ||
# via selinux | ||
docker==7.1.0 | ||
# via molecule-plugins | ||
enrich==1.2.7 | ||
# via molecule | ||
filelock==3.14.0 | ||
# via | ||
# ansible-lint | ||
# virtualenv | ||
identify==2.5.36 | ||
# via pre-commit | ||
idna==3.7 | ||
# via requests | ||
importlib-metadata==7.1.0 | ||
# via ansible-lint | ||
jinja2==3.1.4 | ||
# via | ||
# ansible-core | ||
# molecule | ||
jsonschema==4.22.0 | ||
# via | ||
# ansible-compat | ||
# ansible-lint | ||
# molecule | ||
jsonschema-specifications==2023.12.1 | ||
# via jsonschema | ||
markdown-it-py==3.0.0 | ||
# via rich | ||
markupsafe==2.1.5 | ||
# via jinja2 | ||
mdurl==0.1.2 | ||
# via markdown-it-py | ||
molecule==24.2.1 | ||
# via | ||
# -r requirements.in | ||
# molecule-plugins | ||
molecule-plugins[docker]==23.5.3 | ||
ansible-lint==24.5.0 | ||
tox==4.12.1 | ||
# via -r requirements.in | ||
mypy-extensions==1.0.0 | ||
# via black | ||
nodeenv==1.9.1 | ||
# via pre-commit | ||
packaging==24.0 | ||
# via | ||
# ansible-compat | ||
# ansible-core | ||
# ansible-lint | ||
# black | ||
# molecule | ||
pathspec==0.12.1 | ||
# via | ||
# ansible-lint | ||
# black | ||
# yamllint | ||
platformdirs==4.2.2 | ||
# via | ||
# black | ||
# virtualenv | ||
pluggy==1.5.0 | ||
# via molecule | ||
pre-commit==3.7.1 | ||
# via -r requirements.in | ||
pycparser==2.22 | ||
# via cffi | ||
pygments==2.18.0 | ||
# via rich | ||
pyyaml==6.0.1 | ||
# via | ||
# ansible-compat | ||
# ansible-core | ||
# ansible-lint | ||
# molecule | ||
# pre-commit | ||
# yamllint | ||
referencing==0.35.1 | ||
# via | ||
# jsonschema | ||
# jsonschema-specifications | ||
requests==2.31.0 | ||
# via | ||
# docker | ||
# molecule-plugins | ||
resolvelib==1.0.1 | ||
# via ansible-core | ||
rich==13.7.1 | ||
# via | ||
# ansible-lint | ||
# enrich | ||
# molecule | ||
rpds-py==0.18.1 | ||
# via | ||
# jsonschema | ||
# referencing | ||
ruamel-yaml==0.18.6 | ||
# via ansible-lint | ||
ruamel-yaml-clib==0.2.8 | ||
# via ruamel-yaml | ||
selinux==0.3.0 | ||
# via molecule-plugins | ||
subprocess-tee==0.4.1 | ||
# via | ||
# ansible-compat | ||
# ansible-lint | ||
urllib3==2.2.1 | ||
# via | ||
# docker | ||
# requests | ||
virtualenv==20.26.2 | ||
# via pre-commit | ||
wcmatch==8.5.2 | ||
# via | ||
# ansible-lint | ||
# molecule | ||
yamllint==1.35.1 | ||
# via ansible-lint | ||
zipp==3.19.2 | ||
# via importlib-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
set -e pipefail | ||
|
||
printf "Creating project-specific virtualenv in .venv..." | ||
python3 -m venv .venv | ||
printf "OK\n" | ||
|
||
source .venv/bin/activate | ||
|
||
printf "Installing development requirements..." | ||
python3 -m pip install --upgrade pip --quiet | ||
python3 -m pip install --quiet -r requirements.txt --upgrade | ||
python3 -m piptools sync --pip-args "--quiet" # ensure contents stay synced with lockfile | ||
|
||
printf "OK\n" | ||
|
||
printf "Installing pre-commit hook..." | ||
pre-commit install > /dev/null | ||
printf "OK\n" | ||
|
||
printf "Development venv initialized!\n" | ||
printf "To activate it, run:\n\n" | ||
printf "source .venv/bin/activate\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
pip-compile -U requirements.in |