Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"language": "en",
"dictionaries": ["companies", "filetypes", "fullstack", "softwareTerms"],
"words": [
"authelia",
"aquasecurity",
"dotenv",
"excepthook",
"gaudin",
"isoformat",
"iubp",
"jetstream",
"lfx",
"lfprojects",
"linuxfoundation",
"meltano",
"mockdata",
"searchpath",
"subproject",
"representer",
"timestamper",
"timedelta",
"uuidgen"
],
"flagWords": [
"abort: cancel, end, fail, halt, stop, terminate",
"abortion: cancelation, ending, failure, halting, stopping, termination",
"blackhat: attacker, malicious",
"black-hat: attacker, malicious",
"whitehat: ethical, security, researcher",
"white-hat: ethical, security, researcher",
"cripple: disable, degrade, impact",
"crippled: disabled, degraded, impacted",
"grandfathered: legacy, exempted, preauthorized",
"master: controller, primary, main, leader, parent",
"slave: agent, replica, secondary, follower, child",
"tribe: squad, team, group",
"sanity-check: test, verify, validate",
"whitelist: allowlist",
"white-list: allow-list",
"blacklist: denylist",
"black-list: deny-list"
],
"ignorePaths": [
".cspell.json",
".gitignore",
".mega-linter.yml",
".yamllint.yml",
"CODEOWNERS",
"LICENSE",
"LICENSE-docs",
"megalinter-reports",
"pyproject.toml",
"styles"
],
"languageSettings": [
{
"languageId": "markdown",
"ignoreRegExpList": ["/^\\s*```\\s*(mermaid)[\\s\\S]*?^\\s*```/gm"]
}
]
}
26 changes: 26 additions & 0 deletions .github/workflows/license-header-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT

name: License Header Check

"on": [pull_request]

permissions:
contents: read
pull-requests: write

jobs:
license-header-check:
name: License Header Check
uses: linuxfoundation/lfx-public-workflows/.github/workflows/license-header-check.yml@main
with:
copyright_line: "Copyright The Linux Foundation and each contributor to LFX."
include_files: |
[
"*.tpl",
"*.txt",
"*.yaml",
"*.yml",
".gitignore"
]
39 changes: 39 additions & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT

name: MegaLinter

"on":
pull_request: null

permissions:
contents: read

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest

permissions:
contents: read

steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

# MegaLinter
- name: MegaLinter
id: ml
# Use the Python flavor.
uses: oxsecurity/megalinter/flavors/python@62c799d895af9bcbca5eacfebca29d527f125a57 # 9.1.0
env:
# Pass token for better rate limits.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT

# Local and temporary files
.DS_Store
.idea/
.vscode/
*.swp
*~
.env
*.env

# MegaLinter reports
/megalinter-reports/

# Python environment
.venv/
.env*
__pycache__/
.mypy_cache/
.ruff_cache/
2 changes: 2 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore local Kubernetes paths.
^https?://[a-zA-Z0-9.-]+\.svc\.cluster\.local
17 changes: 17 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT
---
GITHUB_COMMENT_REPORTER: false
DISABLE_LINTERS:
# Pylint errors on missing dependencies, and is redundant with ruff.
- PYTHON_PYLINT
# Pyright errors on missing dependencies.
- PYTHON_PYRIGHT
# yamllint is sufficient for us.
- YAML_PRETTIER
DISABLE_ERRORS_LINTERS:
# This may be informative but doesn't need to break the build.
- COPYPASTE_JSCPD
# Making optional to not block builds, even though it's still important!
- SPELL_CSPELL
PYTHON_ISORT_ARGUMENTS: "--src src"
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
13 changes: 13 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT
extends: default
ignore: |
.git
__pycache__
megalinter-reports
playbooks
rules:
line-length:
max: 120
level: warning
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright The Linux Foundation and each contributor to LFX.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading