diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..724c0fb --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +repos: + - repo: local + hooks: + - id: yaml-lint + name: Run YAML lint + entry: yamllint + language: system + types: [yaml] + - id: ansible-lint + name: Ansible Lint + entry: ansible-lint + language: system + types: [yaml] + - id: flake8-lint + name: Run Python lint (Flake8) + entry: flake8 + language: system + types: [python] diff --git a/.yamllint b/.yamllint index 8827676..57fb112 100644 --- a/.yamllint +++ b/.yamllint @@ -31,3 +31,6 @@ rules: type: unix trailing-spaces: disable truthy: disable + +ignore: | + .git diff --git a/requirements.in b/requirements.in index cffd02c..25ce57b 100644 --- a/requirements.in +++ b/requirements.in @@ -4,3 +4,4 @@ pytest-testinfra ansible ansible-lint flake8 +pre-commit diff --git a/requirements.txt b/requirements.txt index efbd71f..3079487 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,87 +4,95 @@ # # pip-compile # -ansible==10.0.1 +ansible==11.1.0 # via -r requirements.in -ansible-compat==24.6.1 +ansible-compat==24.10.0 # via # ansible-lint # molecule -ansible-core==2.17.7 +ansible-core==2.18.1 # via # ansible # ansible-compat # ansible-lint # molecule -ansible-lint==24.6.0 +ansible-lint==25.1.0 # via -r requirements.in -attrs==23.2.0 +attrs==25.1.0 # via # jsonschema # referencing -black==24.4.2 +black==24.10.0 # via ansible-lint -bracex==2.4 +bracex==2.5.post1 # via wcmatch -certifi==2024.7.4 +certifi==2024.12.14 # via requests -cffi==1.16.0 +cffi==1.17.1 # via cryptography -charset-normalizer==3.3.2 +cfgv==3.4.0 + # via pre-commit +charset-normalizer==3.4.1 # via requests -click==8.1.7 +click==8.1.8 # via # black # click-help-colors # molecule click-help-colors==0.9.4 # via molecule -cryptography==43.0.1 +cryptography==44.0.0 # via ansible-core -distro==1.9.0 - # via selinux +distlib==0.3.9 + # via virtualenv docker==7.1.0 # via molecule-plugins enrich==1.2.7 # via molecule -filelock==3.15.1 - # via ansible-lint -flake8==7.0.0 +filelock==3.17.0 + # via + # ansible-lint + # virtualenv +flake8==7.1.1 # via -r requirements.in -idna==3.7 +identify==2.6.6 + # via pre-commit +idna==3.10 # via requests -importlib-metadata==7.1.0 +importlib-metadata==8.6.1 # via ansible-lint iniconfig==2.0.0 # via pytest -jinja2==3.1.4 +jinja2==3.1.5 # via # ansible-core # molecule -jsonschema==4.22.0 +jsonschema==4.23.0 # via # ansible-compat # ansible-lint # molecule -jsonschema-specifications==2023.12.1 +jsonschema-specifications==2024.10.1 # via jsonschema markdown-it-py==3.0.0 # via rich -markupsafe==2.1.5 +markupsafe==3.0.2 # via jinja2 mccabe==0.7.0 # via flake8 mdurl==0.1.2 # via markdown-it-py -molecule==24.6.0 +molecule==25.1.0 # via # -r requirements.in # molecule-plugins -molecule-plugins[docker]==23.5.3 +molecule-plugins[docker]==23.7.0 # via -r requirements.in mypy-extensions==1.0.0 # via black -packaging==24.1 +nodeenv==1.9.1 + # via pre-commit +packaging==24.2 # via # ansible-compat # ansible-core @@ -97,32 +105,37 @@ pathspec==0.12.1 # ansible-lint # black # yamllint -platformdirs==4.2.2 - # via black +platformdirs==4.3.6 + # via + # black + # virtualenv pluggy==1.5.0 # via # molecule # pytest -pycodestyle==2.11.1 +pre-commit==4.1.0 + # via -r requirements.in +pycodestyle==2.12.1 # via flake8 pycparser==2.22 # via cffi pyflakes==3.2.0 # via flake8 -pygments==2.18.0 +pygments==2.19.1 # via rich -pytest==8.2.2 +pytest==8.3.4 # via pytest-testinfra pytest-testinfra==10.1.1 # via -r requirements.in -pyyaml==6.0.1 +pyyaml==6.0.2 # via # ansible-compat # ansible-core # ansible-lint # molecule + # pre-commit # yamllint -referencing==0.35.1 +referencing==0.36.2 # via # jsonschema # jsonschema-specifications @@ -132,34 +145,35 @@ requests==2.32.3 # molecule-plugins resolvelib==1.0.1 # via ansible-core -rich==13.7.1 +rich==13.9.4 # via - # ansible-lint # enrich # molecule -rpds-py==0.18.1 +rpds-py==0.22.3 # via # jsonschema # referencing -ruamel-yaml==0.18.6 +ruamel-yaml==0.18.10 # via ansible-lint -ruamel-yaml-clib==0.2.8 +ruamel-yaml-clib==0.2.12 # via ruamel-yaml -selinux==0.3.0 - # via molecule-plugins -subprocess-tee==0.4.1 +subprocess-tee==0.4.2 # via # ansible-compat # ansible-lint -urllib3==2.2.2 +typing-extensions==4.12.2 + # via referencing +urllib3==2.3.0 # via # docker # requests -wcmatch==8.5.2 +virtualenv==20.29.1 + # via pre-commit +wcmatch==10.0 # via # ansible-lint # molecule yamllint==1.35.1 # via ansible-lint -zipp==3.19.2 +zipp==3.21.0 # via importlib-metadata