Skip to content

Commit cb4c330

Browse files
committed
Merge branch 'develop' into 'infrahub-develop' with resolved conflicts
Fixes conflict in infrahub_sdk/client.py
2 parents 0a1d3eb + 2c16773 commit cb4c330

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1690
-216
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
- name: "Install dependencies"
147147
run: npm install
148148
- name: "Setup Python environment"
149-
run: "pip install invoke toml"
149+
run: "pip install invoke"
150150
- name: "Build docs website"
151151
run: "invoke docs"
152152

@@ -176,7 +176,7 @@ jobs:
176176
- name: "Install dependencies"
177177
run: "poetry install --no-interaction --no-ansi --extras ctl"
178178
- name: "Setup environment"
179-
run: "pip install invoke toml"
179+
run: "poetry run pip install invoke"
180180
- name: "Validate generated documentation"
181181
run: "poetry run invoke docs-validate"
182182

@@ -236,7 +236,11 @@ jobs:
236236
run: |
237237
pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }} --python python${{ matrix.python-version }}
238238
poetry config virtualenvs.create true --local
239-
pip install invoke toml codecov
239+
pip install invoke codecov
240+
- name: "Install tomli for Python < 3.11"
241+
if: matrix.python-version == '3.9' || matrix.python-version == '3.10'
242+
run: |
243+
pip install tomli
240244
- name: "Install Package"
241245
run: "poetry install --all-extras"
242246
- name: "Mypy Tests"
@@ -289,7 +293,7 @@ jobs:
289293
run: |
290294
pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
291295
poetry config virtualenvs.create true --local
292-
pip install invoke toml codecov
296+
pip install invoke codecov
293297
- name: "Install Package"
294298
run: "poetry install --all-extras"
295299
- name: "Integration Tests"
@@ -362,7 +366,7 @@ jobs:
362366
# run: |
363367
# pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
364368
# poetry config virtualenvs.create true --local
365-
# pip install invoke toml codecov
369+
# pip install invoke codecov
366370

367371
# - name: "Install Package"
368372
# run: "poetry install --all-extras"

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.3.0
5+
hooks:
6+
- id: trailing-whitespace
7+
- id: check-ast
8+
- id: check-case-conflict
9+
- id: check-merge-conflict
10+
- id: check-toml
11+
- id: check-yaml
12+
- id: end-of-file-fixer
13+
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
# Ruff version.
16+
rev: v0.11.9
17+
hooks:
18+
# Run the linter.
19+
- id: ruff
20+
args: [--fix]
21+
# Run the formatter.
22+
- id: ruff-format
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `convert_object_type` method to allow converting an object to another type.

changelog/+escape-hfid.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fixed issue with improperly escaped special characters in `hfid` fields and other string values in GraphQL mutations by implementing proper JSON-style string escaping

changelog/464.housekeeping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Handle error gracefully when loading schema instead of failing with an exception

changelog/473.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
JsonDecodeError now includes server response content in error message when JSON decoding fails, providing better debugging information for non-JSON server responses.

changelog/528.housekeeping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace toml package with tomllib and tomli optionally for when Python version is less than 3.11

changelog/529.added.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add `create_diff` method to create a diff summary between two timestamps
2+
Update `get_diff_summary` to accept optional time range parameters

changelog/535.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix branch handling in `_run_transform` and `execute_graphql_query` functions in Infrahubctl to use environment variables for branch management.

changelog/549.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow the ability to clear optional attributes by setting them to None if they have been mutated by the user.

0 commit comments

Comments
 (0)