capella-model-explorer 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capella_model_explorer-0.2.2/.commitlintrc.yml +19 -0
- capella_model_explorer-0.2.2/.git_archival.txt +7 -0
- capella_model_explorer-0.2.2/.gitattributes +11 -0
- capella_model_explorer-0.2.2/.github/workflows/build-test-publish.yml +102 -0
- capella_model_explorer-0.2.2/.github/workflows/commit-check.yml +63 -0
- capella_model_explorer-0.2.2/.github/workflows/push-docker-image.yml +44 -0
- capella_model_explorer-0.2.2/.gitignore +163 -0
- capella_model_explorer-0.2.2/.pre-commit-config.yaml +152 -0
- capella_model_explorer-0.2.2/.vscode/launch.json +15 -0
- capella_model_explorer-0.2.2/.vscode/launch.json.license +2 -0
- capella_model_explorer-0.2.2/CONTRIBUTING.md +145 -0
- capella_model_explorer-0.2.2/Dockerfile +64 -0
- capella_model_explorer-0.2.2/LICENSES/.license_header.txt +2 -0
- capella_model_explorer-0.2.2/LICENSES/Apache-2.0.txt +202 -0
- capella_model_explorer-0.2.2/LICENSES/CC0-1.0.txt +121 -0
- capella_model_explorer-0.2.2/PKG-INFO +221 -0
- capella_model_explorer-0.2.2/README.md +186 -0
- capella_model_explorer-0.2.2/capella_model_explorer/__init__.py +11 -0
- capella_model_explorer-0.2.2/capella_model_explorer/backend/__init__.py +11 -0
- capella_model_explorer-0.2.2/capella_model_explorer/backend/__main__.py +37 -0
- capella_model_explorer-0.2.2/capella_model_explorer/backend/explorer.py +372 -0
- capella_model_explorer-0.2.2/capella_model_explorer/backend/model_diff.py +478 -0
- capella_model_explorer-0.2.2/capella_model_explorer/backend/templates.py +200 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/PKG-INFO +221 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/SOURCES.txt +116 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/dependency_links.txt +1 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/not-zip-safe +1 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/requires.txt +20 -0
- capella_model_explorer-0.2.2/capella_model_explorer.egg-info/top_level.txt +1 -0
- capella_model_explorer-0.2.2/entrypoint.sh +10 -0
- capella_model_explorer-0.2.2/frontend/.eslintrc.cjs +31 -0
- capella_model_explorer-0.2.2/frontend/.gitignore +27 -0
- capella_model_explorer-0.2.2/frontend/.prettierrc.js +21 -0
- capella_model_explorer-0.2.2/frontend/.storybook/main.js +29 -0
- capella_model_explorer-0.2.2/frontend/.storybook/preview.js +19 -0
- capella_model_explorer-0.2.2/frontend/README.md +13 -0
- capella_model_explorer-0.2.2/frontend/fetch-version.py +38 -0
- capella_model_explorer-0.2.2/frontend/index.html +18 -0
- capella_model_explorer-0.2.2/frontend/package-lock.json +13295 -0
- capella_model_explorer-0.2.2/frontend/package-lock.json.license +2 -0
- capella_model_explorer-0.2.2/frontend/package.json +60 -0
- capella_model_explorer-0.2.2/frontend/package.json.license +2 -0
- capella_model_explorer-0.2.2/frontend/postcss.config.js +11 -0
- capella_model_explorer-0.2.2/frontend/public/static/env.js +9 -0
- capella_model_explorer-0.2.2/frontend/src/APIConfig.js +12 -0
- capella_model_explorer-0.2.2/frontend/src/App.css +54 -0
- capella_model_explorer-0.2.2/frontend/src/App.jsx +33 -0
- capella_model_explorer-0.2.2/frontend/src/components/AppInfo.jsx +37 -0
- capella_model_explorer-0.2.2/frontend/src/components/Badge.jsx +22 -0
- capella_model_explorer-0.2.2/frontend/src/components/Breadcrumbs.jsx +108 -0
- capella_model_explorer-0.2.2/frontend/src/components/Button.jsx +16 -0
- capella_model_explorer-0.2.2/frontend/src/components/Card.jsx +12 -0
- capella_model_explorer-0.2.2/frontend/src/components/CommitInformation.jsx +46 -0
- capella_model_explorer-0.2.2/frontend/src/components/DiffExplorer.jsx +163 -0
- capella_model_explorer-0.2.2/frontend/src/components/DiffView.jsx +122 -0
- capella_model_explorer-0.2.2/frontend/src/components/Header.jsx +28 -0
- capella_model_explorer-0.2.2/frontend/src/components/HomeIcon.jsx +15 -0
- capella_model_explorer-0.2.2/frontend/src/components/InstanceView.jsx +113 -0
- capella_model_explorer-0.2.2/frontend/src/components/Lightbox.jsx +90 -0
- capella_model_explorer-0.2.2/frontend/src/components/LightboxButton.jsx +14 -0
- capella_model_explorer-0.2.2/frontend/src/components/ModelDiff.jsx +280 -0
- capella_model_explorer-0.2.2/frontend/src/components/ObjectList.jsx +16 -0
- capella_model_explorer-0.2.2/frontend/src/components/SVGDisplay.jsx +51 -0
- capella_model_explorer-0.2.2/frontend/src/components/SettingsMenu.jsx +48 -0
- capella_model_explorer-0.2.2/frontend/src/components/Spinner.jsx +10 -0
- capella_model_explorer-0.2.2/frontend/src/components/TemplateCard.jsx +92 -0
- capella_model_explorer-0.2.2/frontend/src/components/TemplateDetails.jsx +137 -0
- capella_model_explorer-0.2.2/frontend/src/components/ThemeSwitcher.jsx +46 -0
- capella_model_explorer-0.2.2/frontend/src/components/ViewsList.jsx +49 -0
- capella_model_explorer-0.2.2/frontend/src/components/WiredTemplatesList.jsx +51 -0
- capella_model_explorer-0.2.2/frontend/src/index.css +275 -0
- capella_model_explorer-0.2.2/frontend/src/main.jsx +13 -0
- capella_model_explorer-0.2.2/frontend/src/stories/ObjectList.stories.js +31 -0
- capella_model_explorer-0.2.2/frontend/src/stories/Spinner.stories.js +20 -0
- capella_model_explorer-0.2.2/frontend/src/stories/TemplateCard.stories.js +56 -0
- capella_model_explorer-0.2.2/frontend/src/stories/TemplatesList.stories.js +38 -0
- capella_model_explorer-0.2.2/frontend/src/stories/WiredTemplatesList.stories.js +33 -0
- capella_model_explorer-0.2.2/frontend/src/views/HomeView.jsx +141 -0
- capella_model_explorer-0.2.2/frontend/src/views/ModelComparisonView.jsx +126 -0
- capella_model_explorer-0.2.2/frontend/src/views/TemplateView.jsx +125 -0
- capella_model_explorer-0.2.2/frontend/tailwind.config.js +39 -0
- capella_model_explorer-0.2.2/frontend/vite.config.js +12 -0
- capella_model_explorer-0.2.2/pyproject.toml +181 -0
- capella_model_explorer-0.2.2/setup.cfg +4 -0
- capella_model_explorer-0.2.2/templates/__generic__.html.j2 +14 -0
- capella_model_explorer-0.2.2/templates/common_macros.html.j2 +313 -0
- capella_model_explorer-0.2.2/templates/cross-cutting/classes.html.j2 +119 -0
- capella_model_explorer-0.2.2/templates/cross-cutting/diagrams.html.j2 +33 -0
- capella_model_explorer-0.2.2/templates/cross-cutting/exchange-item.html.j2 +41 -0
- capella_model_explorer-0.2.2/templates/cross-cutting/index.yaml +37 -0
- capella_model_explorer-0.2.2/templates/cross-cutting/region.html.j2 +123 -0
- capella_model_explorer-0.2.2/templates/functional.html.j2 +158 -0
- capella_model_explorer-0.2.2/templates/index.yaml +25 -0
- capella_model_explorer-0.2.2/templates/logical-architecture/index.yaml +49 -0
- capella_model_explorer-0.2.2/templates/logical-architecture/logical-component.html.j2 +38 -0
- capella_model_explorer-0.2.2/templates/logical-architecture/logical-function.html.j2 +12 -0
- capella_model_explorer-0.2.2/templates/logical-architecture/logical-interface.html.j2 +63 -0
- capella_model_explorer-0.2.2/templates/logical-architecture/logical-state.html.j2 +84 -0
- capella_model_explorer-0.2.2/templates/object_comparison.html.j2 +59 -0
- capella_model_explorer-0.2.2/templates/operational-analysis/index.yaml +28 -0
- capella_model_explorer-0.2.2/templates/operational-analysis/operational-activity.html.j2 +139 -0
- capella_model_explorer-0.2.2/templates/operational-analysis/operational-capability.html.j2 +111 -0
- capella_model_explorer-0.2.2/templates/operational-analysis/operational-entity.html.j2 +95 -0
- capella_model_explorer-0.2.2/templates/physical-architecture/index.yaml +41 -0
- capella_model_explorer-0.2.2/templates/physical-architecture/phy-component.html.j2 +16 -0
- capella_model_explorer-0.2.2/templates/physical-architecture/physical-function.html.j2 +12 -0
- capella_model_explorer-0.2.2/templates/physical-architecture/physical-link.html.j2 +21 -0
- capella_model_explorer-0.2.2/templates/physical-architecture/sw-interface.html.j2 +94 -0
- capella_model_explorer-0.2.2/templates/req.html.j2 +30 -0
- capella_model_explorer-0.2.2/templates/system-analysis/index.yaml +51 -0
- capella_model_explorer-0.2.2/templates/system-analysis/mod-rules-compliance.html.j2 +145 -0
- capella_model_explorer-0.2.2/templates/system-analysis/system-actor.html.j2 +87 -0
- capella_model_explorer-0.2.2/templates/system-analysis/system-capability.html.j2 +62 -0
- capella_model_explorer-0.2.2/templates/system-analysis/system-definition.html.j2 +89 -0
- capella_model_explorer-0.2.2/templates/system-analysis/system-interface.html.j2 +58 -0
- capella_model_explorer-0.2.2/templates/system-analysis/system_function.html.j2 +12 -0
- capella_model_explorer-0.2.2/tests/test_capella_model_explorer.py +85 -0
- capella_model_explorer-0.2.2/tests/test_index.yaml +27 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
rules:
|
|
4
|
+
body-leading-blank: [2, always]
|
|
5
|
+
footer-leading-blank: [2, always]
|
|
6
|
+
scope-case: [2, always, lower-case]
|
|
7
|
+
subject-case: [2, always, sentence-case]
|
|
8
|
+
subject-empty: [2, never]
|
|
9
|
+
subject-full-stop: [2, never, .]
|
|
10
|
+
subject-max-length: [2, always, 72]
|
|
11
|
+
type-empty: [2, never]
|
|
12
|
+
type-enum:
|
|
13
|
+
[
|
|
14
|
+
2,
|
|
15
|
+
always,
|
|
16
|
+
[build, chore, ci, docs, feat, fix, merge, perf, refactor, revert, test],
|
|
17
|
+
]
|
|
18
|
+
extends:
|
|
19
|
+
- '@commitlint/config-conventional'
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
|
|
4
|
+
name: Build
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
push:
|
|
9
|
+
branches: ["*"]
|
|
10
|
+
tags: ["v*.*.*"]
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: Test with Python ${{matrix.python_version}} on ${{matrix.os}}
|
|
16
|
+
runs-on: ${{matrix.os}}
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
os: [ubuntu-latest]
|
|
21
|
+
python_version:
|
|
22
|
+
- "3.11"
|
|
23
|
+
- "3.12"
|
|
24
|
+
include:
|
|
25
|
+
- os: windows-latest
|
|
26
|
+
python_version: "3.11"
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- name: Set up Python ${{matrix.python_version}}
|
|
30
|
+
uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
cache: pip
|
|
33
|
+
cache-dependency-path: pyproject.toml
|
|
34
|
+
python-version: ${{matrix.python_version}}
|
|
35
|
+
- name: Upgrade Pip
|
|
36
|
+
run: |-
|
|
37
|
+
python -m pip install -U pip
|
|
38
|
+
- name: Install test dependencies
|
|
39
|
+
run: |-
|
|
40
|
+
python -m pip install '.[test]'
|
|
41
|
+
- name: Run unit tests
|
|
42
|
+
run: |-
|
|
43
|
+
python -m pytest --cov-report=term --cov=capella_model_explorer --rootdir=.
|
|
44
|
+
|
|
45
|
+
pre-commit:
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
- uses: actions/setup-python@v5
|
|
50
|
+
with:
|
|
51
|
+
cache: pip
|
|
52
|
+
cache-dependency-path: pyproject.toml
|
|
53
|
+
python-version: "3.11"
|
|
54
|
+
- name: Upgrade pip
|
|
55
|
+
run: python -m pip install -U pip
|
|
56
|
+
- name: Install pre-commit
|
|
57
|
+
run: python -m pip install pre-commit types-docutils
|
|
58
|
+
- name: Run Pre-Commit
|
|
59
|
+
run: pre-commit run --all-files
|
|
60
|
+
|
|
61
|
+
build:
|
|
62
|
+
name: Build wheel
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- name: Setup Python
|
|
67
|
+
uses: actions/setup-python@v5
|
|
68
|
+
with:
|
|
69
|
+
python-version: "3.11"
|
|
70
|
+
- name: Install dependencies
|
|
71
|
+
run: |-
|
|
72
|
+
python -m pip install -U pip
|
|
73
|
+
python -m pip install build twine
|
|
74
|
+
- name: Build packages
|
|
75
|
+
run: |-
|
|
76
|
+
python -m build
|
|
77
|
+
- name: Verify packages
|
|
78
|
+
run: |-
|
|
79
|
+
python -m twine check dist/*
|
|
80
|
+
- name: Upload artifacts
|
|
81
|
+
uses: actions/upload-artifact@v4
|
|
82
|
+
with:
|
|
83
|
+
name: python-package-distributions
|
|
84
|
+
path: 'dist/*'
|
|
85
|
+
pypi:
|
|
86
|
+
name: Publish to PyPI
|
|
87
|
+
runs-on: ubuntu-latest
|
|
88
|
+
needs: [build, test]
|
|
89
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
90
|
+
environment:
|
|
91
|
+
name: pypi
|
|
92
|
+
url: https://pypi.org/project/capella-model-explorer
|
|
93
|
+
permissions:
|
|
94
|
+
id-token: write
|
|
95
|
+
steps:
|
|
96
|
+
- name: Download built wheel
|
|
97
|
+
uses: actions/download-artifact@v4
|
|
98
|
+
with:
|
|
99
|
+
name: python-package-distributions
|
|
100
|
+
path: dist/
|
|
101
|
+
- name: Publish to PyPI
|
|
102
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
|
|
4
|
+
name: Conventional Commits
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [master]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
conventional-commits:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
concurrency:
|
|
14
|
+
group: commit-check-pr-${{ github.event.pull_request.number }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
- name: Install commitlint
|
|
21
|
+
run: npm install @commitlint/cli @commitlint/config-conventional
|
|
22
|
+
- name: Validate commit messages
|
|
23
|
+
id: conventional-commits
|
|
24
|
+
env:
|
|
25
|
+
SHA_FROM: ${{ github.event.pull_request.base.sha }}
|
|
26
|
+
SHA_TO: ${{ github.event.pull_request.head.sha }}
|
|
27
|
+
run: |
|
|
28
|
+
delim="_EOF_$(uuidgen)"
|
|
29
|
+
echo "validation-result<<$delim" >> "$GITHUB_OUTPUT"
|
|
30
|
+
r=0
|
|
31
|
+
npx commitlint --from "$SHA_FROM" --to "$SHA_TO" >> "$GITHUB_OUTPUT" 2>&1 || r=$?
|
|
32
|
+
echo "$delim" >> "$GITHUB_OUTPUT"
|
|
33
|
+
exit $r
|
|
34
|
+
- name: Find conventional commit comment on PR
|
|
35
|
+
uses: peter-evans/find-comment@v3
|
|
36
|
+
if: always() && steps.conventional-commits.outcome == 'failure'
|
|
37
|
+
id: fc
|
|
38
|
+
with:
|
|
39
|
+
issue-number: ${{ github.event.pull_request.number }}
|
|
40
|
+
comment-author: 'github-actions[bot]'
|
|
41
|
+
body-includes: conventional commit
|
|
42
|
+
- name: Post comment if validation failed
|
|
43
|
+
uses: peter-evans/create-or-update-comment@v4
|
|
44
|
+
if: always() && steps.conventional-commits.outcome == 'failure'
|
|
45
|
+
with:
|
|
46
|
+
comment-id: ${{ steps.fc.outputs.comment-id }}
|
|
47
|
+
issue-number: ${{ github.event.pull_request.number }}
|
|
48
|
+
body: |
|
|
49
|
+
The pull request does not conform to the conventional commit specification. Please ensure that your commit messages follow the spec: <https://www.conventionalcommits.org/>.
|
|
50
|
+
We also strongly recommend that you set up your development environment with pre-commit, as described in our [CONTRIBUTING guidelines](https://github.com/DSD-DBS/capella-model-explorer/blob/master/CONTRIBUTING.md). This will run all the important checks right before you commit your changes, and avoids lengthy CI wait time and round trips.
|
|
51
|
+
|
|
52
|
+
This is the commit validation log:
|
|
53
|
+
```
|
|
54
|
+
${{ steps.conventional-commits.outputs.validation-result }}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Here are some examples of valid commit messages:
|
|
58
|
+
```
|
|
59
|
+
build: Bump dependency versions
|
|
60
|
+
docs(user): Add model creation workflow
|
|
61
|
+
feat: Add a monitoring dashboard
|
|
62
|
+
```
|
|
63
|
+
edit-mode: replace
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
|
|
4
|
+
name: Create and publish Docker image
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: ["**"]
|
|
9
|
+
tags: ["v*.*.*"]
|
|
10
|
+
|
|
11
|
+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
|
|
12
|
+
env:
|
|
13
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
14
|
+
|
|
15
|
+
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
|
16
|
+
jobs:
|
|
17
|
+
build-and-push-image:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
packages: write
|
|
23
|
+
#
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout repository
|
|
26
|
+
uses: actions/checkout@v4
|
|
27
|
+
- name: Log in to the Container registry
|
|
28
|
+
uses: docker/login-action@v3
|
|
29
|
+
with:
|
|
30
|
+
registry: ghcr.io
|
|
31
|
+
username: ${{ github.actor }}
|
|
32
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
- name: Extract metadata (tags, labels) for Docker
|
|
34
|
+
id: meta
|
|
35
|
+
uses: docker/metadata-action@v5
|
|
36
|
+
with:
|
|
37
|
+
images: ghcr.io/${{ github.repository }}/model-explorer
|
|
38
|
+
- name: Build and push Docker image
|
|
39
|
+
uses: docker/build-push-action@v5
|
|
40
|
+
with:
|
|
41
|
+
context: .
|
|
42
|
+
push: true
|
|
43
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
44
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
cover/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
docs/source/code/
|
|
77
|
+
docs/source/_build
|
|
78
|
+
|
|
79
|
+
# PyBuilder
|
|
80
|
+
.pybuilder/
|
|
81
|
+
target/
|
|
82
|
+
|
|
83
|
+
# Jupyter Notebook
|
|
84
|
+
.ipynb_checkpoints
|
|
85
|
+
|
|
86
|
+
# IPython
|
|
87
|
+
profile_default/
|
|
88
|
+
ipython_config.py
|
|
89
|
+
|
|
90
|
+
# pyenv
|
|
91
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
92
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
93
|
+
# .python-version
|
|
94
|
+
|
|
95
|
+
# pipenv
|
|
96
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
97
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
98
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
99
|
+
# install all needed dependencies.
|
|
100
|
+
#Pipfile.lock
|
|
101
|
+
|
|
102
|
+
# poetry
|
|
103
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
104
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
105
|
+
# commonly ignored for libraries.
|
|
106
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
107
|
+
#poetry.lock
|
|
108
|
+
|
|
109
|
+
# pdm
|
|
110
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
111
|
+
#pdm.lock
|
|
112
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
113
|
+
# in version control.
|
|
114
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
115
|
+
.pdm.toml
|
|
116
|
+
|
|
117
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
118
|
+
__pypackages__/
|
|
119
|
+
|
|
120
|
+
# Celery stuff
|
|
121
|
+
celerybeat-schedule
|
|
122
|
+
celerybeat.pid
|
|
123
|
+
|
|
124
|
+
# SageMath parsed files
|
|
125
|
+
*.sage.py
|
|
126
|
+
|
|
127
|
+
# Environments
|
|
128
|
+
.env
|
|
129
|
+
.venv
|
|
130
|
+
env/
|
|
131
|
+
venv/
|
|
132
|
+
ENV/
|
|
133
|
+
env.bak/
|
|
134
|
+
venv.bak/
|
|
135
|
+
|
|
136
|
+
# Spyder project settings
|
|
137
|
+
.spyderproject
|
|
138
|
+
.spyproject
|
|
139
|
+
|
|
140
|
+
# Rope project settings
|
|
141
|
+
.ropeproject
|
|
142
|
+
|
|
143
|
+
# mkdocs documentation
|
|
144
|
+
/site
|
|
145
|
+
|
|
146
|
+
# mypy
|
|
147
|
+
.mypy_cache/
|
|
148
|
+
.dmypy.json
|
|
149
|
+
dmypy.json
|
|
150
|
+
|
|
151
|
+
# Pyre type checker
|
|
152
|
+
.pyre/
|
|
153
|
+
|
|
154
|
+
# pytype static type analyzer
|
|
155
|
+
.pytype/
|
|
156
|
+
|
|
157
|
+
# Cython debug symbols
|
|
158
|
+
cython_debug/
|
|
159
|
+
|
|
160
|
+
node_modules/
|
|
161
|
+
|
|
162
|
+
# Mac stuff
|
|
163
|
+
.DS_Store
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Copyright DB InfraGO AG and contributors
|
|
2
|
+
# SPDX-License-Identifier: CC0-1.0
|
|
3
|
+
|
|
4
|
+
default_install_hook_types: [commit-msg, pre-commit]
|
|
5
|
+
default_stages: [commit, merge-commit]
|
|
6
|
+
minimum_pre_commit_version: 3.2.0
|
|
7
|
+
repos:
|
|
8
|
+
- repo: https://github.com/gitleaks/gitleaks.git
|
|
9
|
+
rev: v8.19.3
|
|
10
|
+
hooks:
|
|
11
|
+
- id: gitleaks
|
|
12
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
13
|
+
rev: v4.6.0
|
|
14
|
+
hooks:
|
|
15
|
+
- id: check-added-large-files
|
|
16
|
+
- id: check-ast
|
|
17
|
+
- id: check-builtin-literals
|
|
18
|
+
- id: check-case-conflict
|
|
19
|
+
- id: check-executables-have-shebangs
|
|
20
|
+
- id: check-json
|
|
21
|
+
- id: check-merge-conflict
|
|
22
|
+
- id: check-shebang-scripts-are-executable
|
|
23
|
+
- id: check-symlinks
|
|
24
|
+
- id: check-toml
|
|
25
|
+
- id: check-vcs-permalinks
|
|
26
|
+
- id: check-xml
|
|
27
|
+
- id: check-yaml
|
|
28
|
+
- id: debug-statements
|
|
29
|
+
- id: destroyed-symlinks
|
|
30
|
+
- id: end-of-file-fixer
|
|
31
|
+
- id: fix-byte-order-marker
|
|
32
|
+
- id: trailing-whitespace
|
|
33
|
+
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
34
|
+
rev: v1.5.5
|
|
35
|
+
hooks:
|
|
36
|
+
- id: insert-license
|
|
37
|
+
name: Insert license headers (shell-style comments)
|
|
38
|
+
files: '(?:^|/)(?:.*\.(?:py|sh|toml|ya?ml)|Dockerfile|Makefile)$'
|
|
39
|
+
exclude: '(?:^|/)\..+|^docs/Makefile$'
|
|
40
|
+
args:
|
|
41
|
+
- --detect-license-in-X-top-lines=15
|
|
42
|
+
- --license-filepath
|
|
43
|
+
- LICENSES/.license_header.txt
|
|
44
|
+
- --comment-style
|
|
45
|
+
- '#'
|
|
46
|
+
- id: insert-license
|
|
47
|
+
name: Insert license headers (XML-style comments)
|
|
48
|
+
files: '\.(?:html|md|xml)$'
|
|
49
|
+
exclude: '(?:^|/)\..+'
|
|
50
|
+
args:
|
|
51
|
+
- --detect-license-in-X-top-lines=15
|
|
52
|
+
- --license-filepath
|
|
53
|
+
- LICENSES/.license_header.txt
|
|
54
|
+
- --comment-style
|
|
55
|
+
- '<!--| ~| -->'
|
|
56
|
+
- id: insert-license
|
|
57
|
+
name: Insert license headers (C-style comments)
|
|
58
|
+
files: '\.(?:css|js|ts)$'
|
|
59
|
+
exclude: '(?:^|/)\..+'
|
|
60
|
+
args:
|
|
61
|
+
- --detect-license-in-X-top-lines=15
|
|
62
|
+
- --license-filepath
|
|
63
|
+
- LICENSES/.license_header.txt
|
|
64
|
+
- --comment-style
|
|
65
|
+
- '/*| *| */'
|
|
66
|
+
- id: insert-license
|
|
67
|
+
name: Insert license headers (reST comments)
|
|
68
|
+
files: '\.rst$'
|
|
69
|
+
exclude: '(?:^|/)\..+'
|
|
70
|
+
args:
|
|
71
|
+
- --detect-license-in-X-top-lines=15
|
|
72
|
+
- --license-filepath
|
|
73
|
+
- LICENSES/.license_header.txt
|
|
74
|
+
- --comment-style
|
|
75
|
+
- '..| |'
|
|
76
|
+
- id: insert-license
|
|
77
|
+
name: Insert license headers (JSX files)
|
|
78
|
+
files: '\.jsx$'
|
|
79
|
+
exclude: '(?:^|/)\..+'
|
|
80
|
+
args:
|
|
81
|
+
- --detect-license-in-X-top-lines=15
|
|
82
|
+
- --license-filepath
|
|
83
|
+
- LICENSES/.license_header.txt
|
|
84
|
+
- --comment-style
|
|
85
|
+
- '//'
|
|
86
|
+
- repo: https://github.com/PyCQA/isort
|
|
87
|
+
rev: 5.13.2
|
|
88
|
+
hooks:
|
|
89
|
+
- id: isort
|
|
90
|
+
- repo: https://github.com/PyCQA/docformatter
|
|
91
|
+
rev: v1.7.5
|
|
92
|
+
hooks:
|
|
93
|
+
- id: docformatter
|
|
94
|
+
additional_dependencies:
|
|
95
|
+
- docformatter[tomli]
|
|
96
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
97
|
+
rev: v0.6.8
|
|
98
|
+
hooks:
|
|
99
|
+
- id: ruff-format
|
|
100
|
+
- id: ruff
|
|
101
|
+
args: [--extend-ignore=FIX]
|
|
102
|
+
- repo: https://github.com/rhysd/actionlint
|
|
103
|
+
rev: v1.7.3
|
|
104
|
+
hooks:
|
|
105
|
+
- id: actionlint-docker
|
|
106
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
107
|
+
rev: v1.11.2
|
|
108
|
+
hooks:
|
|
109
|
+
- id: mypy
|
|
110
|
+
additional_dependencies:
|
|
111
|
+
- capellambse==0.6.6
|
|
112
|
+
- types-pyyaml==6.0.11
|
|
113
|
+
- repo: https://github.com/fsfe/reuse-tool
|
|
114
|
+
rev: v4.0.3
|
|
115
|
+
hooks:
|
|
116
|
+
- id: reuse
|
|
117
|
+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
|
118
|
+
rev: v9.18.0
|
|
119
|
+
hooks:
|
|
120
|
+
- id: commitlint
|
|
121
|
+
stages: [commit-msg]
|
|
122
|
+
- repo: local
|
|
123
|
+
hooks:
|
|
124
|
+
- id: prettier
|
|
125
|
+
name: prettier
|
|
126
|
+
entry: prettier --write
|
|
127
|
+
language: node
|
|
128
|
+
types_or: [javascript, jsx, ts, css, html, markdown]
|
|
129
|
+
additional_dependencies:
|
|
130
|
+
- 'prettier@^3.3.3'
|
|
131
|
+
- 'prettier-plugin-tailwindcss@^0.6.6'
|
|
132
|
+
- 'prettier-plugin-classnames@^0.7.2'
|
|
133
|
+
- 'prettier-plugin-merge@^0.7.1'
|
|
134
|
+
- 'tailwind-scrollbar@^3.1.0'
|
|
135
|
+
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
136
|
+
rev: v9.10.0
|
|
137
|
+
hooks:
|
|
138
|
+
- id: eslint
|
|
139
|
+
additional_dependencies:
|
|
140
|
+
- 'eslint@^8.57.0'
|
|
141
|
+
- 'eslint-config-prettier@^9.1.0'
|
|
142
|
+
- 'eslint-plugin-import@^2.29.1'
|
|
143
|
+
- 'eslint-plugin-unused-imports@^3.1.0'
|
|
144
|
+
- 'eslint-plugin-deprecation@^2.0.0'
|
|
145
|
+
- 'eslint-plugin-tailwindcss@^3.15.1'
|
|
146
|
+
- 'eslint-plugin-storybook@^0.8.0'
|
|
147
|
+
- 'eslint-plugin-react@^7.34.1'
|
|
148
|
+
- 'eslint-plugin-react-hooks@^4.6.2'
|
|
149
|
+
- 'eslint-plugin-react-refresh@^0.4.5'
|
|
150
|
+
args: ['--fix']
|
|
151
|
+
types: []
|
|
152
|
+
files: '^frontend/.*\.(js|jsx)$'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Debug CapellaModelExplorer Backend",
|
|
6
|
+
"type": "debugpy",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"console": "integratedTerminal",
|
|
9
|
+
"envFile": ".env",
|
|
10
|
+
"pythonArgs": ["-Xdev"],
|
|
11
|
+
"module": "capella_model_explorer.backend",
|
|
12
|
+
"args": ["MODELPATH", "./templates"]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|