cloudcoil.models.prometheus-operator 0.79.2.0__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.

Potentially problematic release.


This version of cloudcoil.models.prometheus-operator might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ cloudcoil/models/**/* linguist-generated=true
@@ -0,0 +1,51 @@
1
+
2
+ name: Run tests
3
+ concurrency:
4
+ group: ${{ github.workflow }}-${{ github.ref }}
5
+ cancel-in-progress: true
6
+ on:
7
+ push:
8
+ branches:
9
+ - release-*
10
+ jobs:
11
+ test:
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ os: [ubuntu-latest]
16
+ python-version:
17
+ - "3.10"
18
+ - "3.11"
19
+ - "3.12"
20
+ - "3.13"
21
+ runs-on: ${{ matrix.os }}
22
+ steps:
23
+ - name: Checkout code
24
+ uses: actions/checkout@v3
25
+
26
+ - name: Install uv and set the python version
27
+ uses: astral-sh/setup-uv@v4
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+ enable-cache: true
31
+ cache-dependency-glob: "**/uv.lock"
32
+
33
+ - name: Install dependencies
34
+ run: uv sync --all-extras --dev
35
+
36
+ - name: Run Checks
37
+ run: make -j8 lint test
38
+
39
+ - name: Upload coverage to Codecov
40
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
41
+ uses: codecov/codecov-action@v5
42
+ with:
43
+ token: ${{ secrets.CODECOV_TOKEN }}
44
+ slug: cloudcoil/cloudcoil
45
+
46
+ - name: Upload test results to Codecov
47
+ if: ${{ !cancelled() }}
48
+ uses: codecov/test-results-action@v1
49
+ with:
50
+ token: ${{ secrets.CODECOV_TOKEN }}
51
+
@@ -0,0 +1,42 @@
1
+
2
+ ---
3
+ name: PyPI publish
4
+
5
+ on:
6
+ release:
7
+ types: [released]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ # IMPORTANT: this permission is mandatory for Trusted Publishing
14
+ id-token: write
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Setup Python
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: "3.10"
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v4
26
+ with:
27
+ python-version: "3.10"
28
+ enable-cache: true
29
+ cache-dependency-glob: "**/uv.lock"
30
+
31
+ - name: Install dependencies
32
+ run: uv sync --all-extras --dev
33
+
34
+ - name: Bump version number
35
+ run: |
36
+ sed -i "s/version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
37
+
38
+ - name: Build package
39
+ run: uv build
40
+
41
+ - name: Publish package distributions to PyPI
42
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,44 @@
1
+
2
+ ---
3
+ name: Test PyPI publish
4
+
5
+ on:
6
+ release:
7
+ types: [prereleased]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ # IMPORTANT: this permission is mandatory for Trusted Publishing
14
+ id-token: write
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Setup Python
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: "3.10"
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v4
26
+ with:
27
+ python-version: "3.10"
28
+ enable-cache: true
29
+ cache-dependency-glob: "**/uv.lock"
30
+
31
+ - name: Install dependencies
32
+ run: uv sync --all-extras --dev
33
+
34
+ - name: Bump version number
35
+ run: |
36
+ sed -i "s/version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
37
+
38
+ - name: Build package
39
+ run: uv build
40
+
41
+ - name: Publish package distributions to PyPI
42
+ uses: pypa/gh-action-pypi-publish@release/v1
43
+ with:
44
+ repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,127 @@
1
+
2
+ name: Update Versions
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+ jobs:
9
+ update-versions:
10
+ permissions:
11
+ contents: write
12
+ pull-requests: write
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ model_version: ['0.79.2']
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ token: ${{ secrets.CI_GITHUB_TOKEN }}
22
+ - name: Install uv and set python
23
+ uses: astral-sh/setup-uv@v4
24
+ with:
25
+ python-version: '3.10'
26
+ enable-cache: true
27
+ cache-dependency-glob: "**/uv.lock"
28
+
29
+ - name: Install dependencies
30
+ run: uv sync --all-extras --dev
31
+
32
+ - name: Update version for ${{ matrix.model_version }}
33
+ env:
34
+ GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
35
+ run: |
36
+ uv add cloudcoil -U
37
+ VERSION="${{ matrix.model_version }}.0"
38
+ MINOR_VERSION=$(echo "${{ matrix.model_version }}" | cut -d'.' -f1,2)
39
+ BRANCH="release-${MINOR_VERSION}"
40
+ # Update version and input URL using sed
41
+ sed -i "s/^version = .*/version = \"${VERSION}\"/" pyproject.toml
42
+ sed -i "s|releases/download/v[0-9]\+\.[0-9]\+\.[0-9]\+/|releases/download/v${{ matrix.model_version }}/|" pyproject.toml
43
+ # Generate models
44
+ make gen-models
45
+
46
+ # Create temporary directory and handle repository
47
+ TEMP_DIR=$(mktemp -d)
48
+ cd "$TEMP_DIR"
49
+
50
+ # Clone repo and checkout/create branch
51
+ git clone https://${{ secrets.CI_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git .
52
+ git checkout "$BRANCH" 2>/dev/null || git checkout -b "$BRANCH"
53
+
54
+ # Fetch and reset to remote branch if it exists
55
+ if git ls-remote --exit-code origin "$BRANCH"; then
56
+ git fetch origin "$BRANCH"
57
+ git reset --hard "origin/$BRANCH"
58
+ fi
59
+
60
+ # Remove all files (tracked and untracked)
61
+ git rm -rf .
62
+
63
+ # Copy new files and commit
64
+ rm -rf $GITHUB_WORKSPACE/.git
65
+ cp -a $GITHUB_WORKSPACE/. .
66
+ # Configure git
67
+ git config user.name "github-actions[bot]"
68
+ git config user.email "github-actions[bot]@users.noreply.github.com"
69
+ git add -A
70
+ git diff --cached --quiet || git commit -m "Update to version ${{ matrix.model_version }}"
71
+ git push -u origin HEAD:"$BRANCH"
72
+
73
+ - name: Get next release version
74
+ id: next_version
75
+ run: |
76
+ BASE_VERSION="${{ matrix.model_version }}"
77
+ EXISTING_TAGS=$(gh release list --repo ${{ github.repository }} --exclude-drafts --json tagName --jq "[.[] | select(.tagName | startswith(\"${BASE_VERSION}.\")).tagName] | .[]")
78
+
79
+ # Find highest x in v{BASE_VERSION}.x
80
+ HIGHEST_X=$(echo "$EXISTING_TAGS" | sort -V | tail -n1 | cut -d. -f3)
81
+
82
+ # If no existing tags, start with 0, otherwise increment
83
+ if [ -z "$HIGHEST_X" ]; then
84
+ NEXT_X=0
85
+ else
86
+ NEXT_X=$((HIGHEST_X + 1))
87
+ fi
88
+
89
+ echo "next_version=${BASE_VERSION}.${NEXT_X}" >> $GITHUB_OUTPUT
90
+ env:
91
+ GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
92
+
93
+ - name: Create draft release
94
+ run: |
95
+ RELEASE_TAG="${{ steps.next_version.outputs.next_version }}"
96
+ BASE_VERSION=$(echo "${{ matrix.model_version }}" | cut -d'.' -f1,2)
97
+ BRANCH="release-${BASE_VERSION}"
98
+
99
+ # Find the previous release tag with same minor version, excluding drafts
100
+ PREV_TAG=$(gh release list --repo ${{ github.repository }} --exclude-drafts --json tagName --jq "[.[] | select(.tagName | startswith(\"${BASE_VERSION}.\")).tagName] | .[]" | sort -V | tail -n1)
101
+ COMPARE_LINK=""
102
+ if [ ! -z "$PREV_TAG" ]; then
103
+ COMPARE_LINK="[Compare with previous release](https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${RELEASE_TAG})"
104
+ fi
105
+
106
+ RELEASE_NOTES="Release for version $RELEASE_TAG ${COMPARE_LINK}"
107
+
108
+ # Check for existing draft first
109
+ EXISTING_DRAFT=$(gh release list --repo ${{ github.repository }} --json tagName,isDraft --jq ".[] | select(.tagName == \"${RELEASE_TAG}\" and .isDraft == true).tagName")
110
+
111
+ if [ ! -z "$EXISTING_DRAFT" ]; then
112
+ gh release edit "$RELEASE_TAG" \
113
+ --repo ${{ github.repository }} \
114
+ --draft \
115
+ --title "Release $RELEASE_TAG" \
116
+ --notes "$RELEASE_NOTES" \
117
+ --target "$BRANCH"
118
+ else
119
+ gh release create "$RELEASE_TAG" \
120
+ --repo ${{ github.repository }} \
121
+ --draft \
122
+ --title "Release $RELEASE_TAG" \
123
+ --notes "$RELEASE_NOTES" \
124
+ --target "$BRANCH"
125
+ fi
126
+ env:
127
+ GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
@@ -0,0 +1,177 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+ .*cache
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # PyPI configuration file
171
+ .pypirc
172
+ processed_swagger.json
173
+ extra_data.json
174
+ .DS_Store
175
+ .vscode
176
+ junit.xml
177
+ /output
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Sambhav Kothari
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,39 @@
1
+ .PHONY: test
2
+ test:
3
+ uv run python -m pytest
4
+
5
+ .PHONY: lint
6
+ lint:
7
+ uv run ruff check cloudcoil tests
8
+ uv run ruff format --check cloudcoil tests
9
+ uv run mypy -p cloudcoil.models.prometheus_operator
10
+
11
+ .PHONY: fix-lint
12
+ fix-lint:
13
+ uv run ruff format cloudcoil tests
14
+ uv run ruff check --fix --unsafe-fixes cloudcoil tests
15
+
16
+ .PHONY: docs-deploy
17
+ docs-deploy:
18
+ rm -rf docs/index.md
19
+ cp README.md docs/index.md
20
+ uv run mkdocs gh-deploy --force
21
+
22
+ .PHONY: docs-serve
23
+ docs-serve:
24
+ rm -rf docs/index.md
25
+ cp README.md docs/index.md
26
+ uv run mkdocs serve
27
+
28
+ .PHONY: prepare-for-pr
29
+ prepare-for-pr: fix-lint lint test
30
+ @echo "========"
31
+ @echo "It looks good! :)"
32
+ @echo "Make sure to commit all changes!"
33
+ @echo "========"
34
+
35
+ .PHONY: gen-models
36
+ gen-models:
37
+ rm -rf cloudcoil/models
38
+ uv run cloudcoil-model-codegen
39
+ $(MAKE) fix-lint