-
Notifications
You must be signed in to change notification settings - Fork 3
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
32 changed files
with
316 additions
and
291 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
exclude_paths: | ||
- .github | ||
- .github/ | ||
- .vscode/ | ||
skip_list: | ||
- meta-runtime[unsupported-version] | ||
- no-changed-when | ||
- no-handler | ||
- no-tabs |
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,6 +1,6 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
|
||
root = true | ||
|
||
|
@@ -21,7 +21,3 @@ tab_width = 2 | |
[*.{ansible-,yaml}lint] | ||
indent_size = 2 | ||
tab_width = 2 | ||
|
||
[Vagrantfile] | ||
indent_size = 2 | ||
tab_width = 2 |
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,13 +1,12 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
tags: ["*"] | ||
|
||
jobs: | ||
release: | ||
|
@@ -17,8 +16,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
with: { python-version: "3.11" } | ||
|
||
- name: Install Ansible | ||
run: pip install ansible-core | ||
|
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,20 +1,16 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
name: lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths-ignore: | ||
- "**.md" | ||
branches: ["**"] | ||
paths-ignore: ["**.md"] | ||
push: | ||
branches: | ||
- "**" | ||
paths-ignore: | ||
- "**.md" | ||
branches: ["**"] | ||
paths-ignore: ["**.md"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -27,7 +23,7 @@ jobs: | |
matrix: | ||
linter: [ansible-lint, mypy, ruff] | ||
os: [ubuntu-latest] | ||
python: ["3.9", "3.10", "3.11"] | ||
python: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
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,49 +1,41 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
|
||
# Ignore everything | ||
* | ||
|
||
# Include specific files | ||
!.ansible-lint | ||
!.editorconfig | ||
!.gitignore | ||
!.prettierrc.yml | ||
!.yamllint | ||
!CHANGELOG.md | ||
!galaxy.yml | ||
!LICENSE | ||
!pyproject.toml | ||
!README.md | ||
!site-check.yml | ||
!site-mail.yml | ||
!site-pkg.yml | ||
!site-syspatch.yml | ||
!site-sysupgrade.yml | ||
!tox.ini | ||
|
||
# Include files from subdirectories | ||
# Include directories | ||
!.github/ | ||
!.github/workflows/ | ||
!.github/workflows/*.yml | ||
|
||
!.vscode/ | ||
!.vscode/extensions.json | ||
!.vscode/settings.json | ||
|
||
!inventory/ | ||
!inventory/localhost.yml | ||
|
||
!meta/ | ||
!meta/runtime.yml | ||
|
||
!playbooks/ | ||
!playbooks/*.yml | ||
!plugins/ | ||
!plugins/modules/ | ||
!plugins/modules/*.py | ||
|
||
!roles/ | ||
!roles/**/ | ||
!roles/**/*.j2 | ||
!roles/**/*.md | ||
!roles/**/*.yml | ||
!roles/**/templates/**/*.j2 | ||
|
||
# Include files | ||
!.ansible-lint | ||
!.editorconfig | ||
!.gitignore | ||
!.prettierrc.yml | ||
!.yamllint | ||
!CHANGELOG.md | ||
!galaxy.yml | ||
!LICENSE | ||
!pyproject.toml | ||
!README.md | ||
!tox.ini |
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,11 +1,10 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
options: | ||
editorconfig: true | ||
|
||
overrides: | ||
- files: "*.md" | ||
options: | ||
tabWidth: 2 | ||
options: { tabWidth: 2 } |
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,18 +1,17 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
// Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
{ | ||
"recommendations": [ | ||
"charliermarsh.ruff", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"ms-python.mypy-type-checker", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"redhat.ansible", | ||
"redhat.vscode-yaml", | ||
"samuelcolvin.jinjahtml", | ||
"wayou.vscode-todo-highlight", | ||
"github.vscode-github-actions", | ||
"tamasfe.even-better-toml" | ||
] | ||
} |
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,15 +1,11 @@ | ||
// SPDX-License-Identifier: ISC | ||
// | ||
// Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
// Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.wordWrap": "on", | ||
|
||
"evenBetterToml.formatter.columnWidth": 100, | ||
"evenBetterToml.formatter.reorderKeys": true, | ||
"evenBetterToml.schema.enabled": false, | ||
|
||
"files.associations": { | ||
".ansible-lint": "yaml", | ||
"**/.github/workflows/galaxy.yml": "yaml", | ||
|
@@ -19,35 +15,38 @@ | |
"**/meta/**/*.yml": "ansible", | ||
"**/tasks/**/*.yml": "ansible", | ||
"**/vars/**/*.yml": "ansible", | ||
"**/roles/*/templates/**/*.conf.j2": "jinja-properties", | ||
"galaxy.yml": "ansible", | ||
"site-*.yml": "ansible" | ||
}, | ||
"files.exclude": { | ||
"**/__pycache__/**": true, | ||
"**/.mypy_cache/**": true, | ||
"**/.ruff_cache/**": true, | ||
"**/.pytest_cache/**": true, | ||
"**/.tox/**": true, | ||
"**/.venv/**": true, | ||
"**/*.egg-info/**": true | ||
"**/.venv/**": true | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
|
||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
// | ||
// Extensions | ||
// | ||
|
||
"ansible.python.interpreterPath": "/bin/python", | ||
|
||
"python.formatting.provider": "black", | ||
"python.linting.enabled": true, | ||
"python.linting.mypyEnabled": true, | ||
"evenBetterToml.formatter.columnWidth": 100, | ||
"evenBetterToml.formatter.reorderKeys": true, | ||
"evenBetterToml.schema.enabled": false, | ||
|
||
"python.testing.pytestArgs": ["test"], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
|
||
"ruff.enable": true, | ||
"ruff.organizeImports": true, | ||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
}, | ||
"editor.defaultFormatter": "ms-python.python" | ||
}, | ||
|
||
"yaml.schemas": { | ||
"https://raw.githubusercontent.com/ansible/schemas/main/f/ansible.json": [ | ||
|
@@ -59,5 +58,22 @@ | |
"https://json.schemastore.org/github-workflow.json": [ | ||
"{workspaceFolder}/.github/workflows/*.yml" | ||
] | ||
} | ||
}, | ||
|
||
// | ||
// Languages | ||
// | ||
|
||
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, | ||
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, | ||
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, | ||
|
||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
}, | ||
|
||
"[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } | ||
} |
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,27 +1,16 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
ignore: | | ||
.mypy_cache/ | ||
.tox/ | ||
.vagrant/ | ||
.venv/ | ||
.vscode/ | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
braces: { max-spaces-inside: 1 } | ||
brackets: enable | ||
colons: enable | ||
commas: enable | ||
comments: | ||
level: warning | ||
comments-indentation: | ||
level: warning | ||
comments: { level: warning } | ||
comments-indentation: { level: warning } | ||
document-end: disable | ||
document-start: | ||
level: warning | ||
document-start: { level: warning } | ||
empty-lines: enable | ||
empty-values: disable | ||
hyphens: enable | ||
|
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,6 +1,6 @@ | ||
ISC License | ||
|
||
Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
|
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,6 +1,6 @@ | ||
# SPDX-License-Identifier: ISC | ||
# | ||
# Copyright (c) 2023 Johnathan C. Maudlin <[email protected]> | ||
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]> | ||
--- | ||
namespace: jcmdln | ||
name: openbsd | ||
|
Oops, something went wrong.