mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 00:13:09 -06:00
adding pre-commit, direnv, working through lint issues
This commit is contained in:
@@ -8,4 +8,5 @@ skip_list:
|
|||||||
- name[casing] # so many of our task names aren't capitalized
|
- name[casing] # so many of our task names aren't capitalized
|
||||||
- name[missing] # some tasks have no name
|
- name[missing] # some tasks have no name
|
||||||
- risky-file-permissions
|
- risky-file-permissions
|
||||||
|
- var-naming[no-role-prefix] # many, many warnings
|
||||||
- yaml # many, many warnings
|
- yaml # many, many warnings
|
||||||
|
|||||||
3
.envrc
Normal file
3
.envrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
layout pipenv
|
||||||
|
pre-commit install
|
||||||
|
ansible-galaxy install -r requirements.yml
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -5,7 +5,8 @@ __pycache__
|
|||||||
*.pyc
|
*.pyc
|
||||||
/.venv
|
/.venv
|
||||||
\#*\#
|
\#*\#
|
||||||
.envrc
|
.direnv
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
ansible_collections
|
ansible_collections
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ repos:
|
|||||||
- --template={}
|
- --template={}
|
||||||
- --pattern=[a-zA-Z0-9]{1,10}-[0-9]{1,6}
|
- --pattern=[a-zA-Z0-9]{1,10}-[0-9]{1,6}
|
||||||
- repo: https://github.com/ansible/ansible-lint.git
|
- repo: https://github.com/ansible/ansible-lint.git
|
||||||
|
stages: [manual]
|
||||||
rev: v24.2.2
|
rev: v24.2.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
|
|||||||
Reference in New Issue
Block a user