Skip to content

Commit 7f1ebbb

Browse files
authored
Merge pull request #258 from opsmill/develop
Release v1.7.1
2 parents fa351f7 + f470cc2 commit 7f1ebbb

27 files changed

+50
-194
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ jobs:
151151
run: "poetry install --all-extras"
152152
- name: "Mypy Tests"
153153
run: "poetry run mypy --show-error-codes infrahub_sdk/"
154-
# - name: "Pylint Tests"
155-
# run: "poetry run pylint infrahub_sdk/"
156154
- name: "Unit Tests"
157155
run: "poetry run pytest --cov infrahub_sdk tests/unit/"
158156
- name: "Upload coverage to Codecov"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [1.7.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.1) - 2025-01-30
15+
16+
### Removed
17+
18+
- All mention of pylint have been removed from the project. ([#206](https://github.com/opsmill/infrahub-sdk-python/issues/206))
19+
1420
## [1.7.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.0) - 2025-01-23
1521

1622
### Added

infrahub_sdk/batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def execute(self, return_exceptions: bool = False) -> tuple[InfrahubNodeSync | N
3030
result = None
3131
try:
3232
result = self.task(*self.args, **self.kwargs)
33-
except Exception as exc: # pylint: disable=broad-exception-caught
33+
except Exception as exc:
3434
if return_exceptions:
3535
return self.node, exc
3636
raise exc
@@ -44,7 +44,7 @@ async def execute_batch_task_in_pool(
4444
async with semaphore:
4545
try:
4646
result = await task.task(*task.args, **task.kwargs)
47-
except Exception as exc: # pylint: disable=broad-exception-caught
47+
except Exception as exc:
4848
if return_exceptions:
4949
return (task.node, exc)
5050
raise exc

infrahub_sdk/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def validate_address(cls, value: str) -> str:
113113

114114
@model_validator(mode="after")
115115
def validate_proxy_config(self) -> Self:
116-
if self.proxy and self.proxy_mounts.is_set: # pylint: disable=no-member
116+
if self.proxy and self.proxy_mounts.is_set:
117117
raise ValueError("'proxy' and 'proxy_mounts' are mutually exclusive")
118118
return self
119119

infrahub_sdk/ctl/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def run_check(
121121
except QueryNotFoundError as exc:
122122
log.warning(f"{module_name}::{check}: unable to find query ({exc!s})")
123123
passed = False
124-
except Exception as exc: # pylint: disable=broad-exception-caught
124+
except Exception as exc:
125125
log.warning(f"{module_name}::{check}: An error occurred during execution ({exc})")
126126
passed = False
127127

infrahub_sdk/ctl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def decorator(func: Callable[..., T]) -> Callable[..., T | Coroutine[Any, Any, T
8888
async def async_wrapper(*args: Any, **kwargs: Any) -> T:
8989
try:
9090
return await func(*args, **kwargs)
91-
except (Error, Exception) as exc: # pylint: disable=broad-exception-caught
91+
except (Error, Exception) as exc:
9292
return handle_exception(exc=exc, console=console, exit_code=exit_code)
9393

9494
return async_wrapper
@@ -97,7 +97,7 @@ async def async_wrapper(*args: Any, **kwargs: Any) -> T:
9797
def wrapper(*args: Any, **kwargs: Any) -> T:
9898
try:
9999
return func(*args, **kwargs)
100-
except (Error, Exception) as exc: # pylint: disable=broad-exception-caught
100+
except (Error, Exception) as exc:
101101
return handle_exception(exc=exc, console=console, exit_code=exit_code)
102102

103103
return wrapper

infrahub_sdk/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RepositoryData(BaseModel):
2020
branch_info: dict[str, RepositoryBranchInfo] = Field(default_factory=dict)
2121

2222
def get_staging_branch(self) -> str | None:
23-
for branch, info in self.branch_info.items(): # pylint: disable=no-member
23+
for branch, info in self.branch_info.items():
2424
if info.internal_status == "staging":
2525
return branch
2626
return None

infrahub_sdk/node.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from .schema import AttributeSchemaAPI, MainSchemaTypesAPI, RelationshipSchemaAPI
2626
from .types import Order
2727

28-
# pylint: disable=too-many-lines
2928

3029
PROPERTIES_FLAG = ["is_visible", "is_protected"]
3130
PROPERTIES_OBJECT = ["source", "owner"]
@@ -801,7 +800,7 @@ def _generate_input_data(self, exclude_unmodified: bool = False, exclude_hfid: b
801800
Returns:
802801
dict[str, Dict]: Representation of an input data in dict format
803802
"""
804-
# pylint: disable=too-many-branches
803+
805804
data = {}
806805
variables = {}
807806

@@ -1251,7 +1250,6 @@ async def generate_query_data_node(
12511250
Returns:
12521251
dict[str, Union[Any, Dict]]: GraphQL query in dictionary format
12531252
"""
1254-
# pylint: disable=too-many-branches
12551253

12561254
data: dict[str, Any] = {}
12571255

@@ -1763,7 +1761,6 @@ def generate_query_data_node(
17631761
Returns:
17641762
dict[str, Union[Any, Dict]]: GraphQL query in dictionary format
17651763
"""
1766-
# pylint: disable=too-many-branches
17671764

17681765
data: dict[str, Any] = {}
17691766

infrahub_sdk/protocols.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
StringOptional,
3030
)
3131

32-
# pylint: disable=too-many-ancestors
3332

3433
# ---------------------------------------------
3534
# ASYNC

infrahub_sdk/schema/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
]
6262

6363

64-
# pylint: disable=redefined-builtin
65-
66-
6764
class DropdownMutationOptionalArgs(TypedDict):
6865
color: str | None
6966
description: str | None

0 commit comments

Comments
 (0)