Skip to content

Commit fcb1ea7

Browse files
committed
lint: builtins and unused args
1 parent 7192d0b commit fcb1ea7

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

datacrunch/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def stringify_class_object_properties(class_object: type) -> str:
1010
:rtype: json string representation of a class object's properties and values
1111
"""
1212
class_properties = {
13-
property: getattr(class_object, property, '')
14-
for property in class_object.__dir__()
13+
property: getattr(class_object, property, '') # noqa: A001
14+
for property in class_object.__dir__() # noqa: A001
1515
if property[:1] != '_' and type(getattr(class_object, property, '')).__name__ != 'method'
1616
}
1717
return json.dumps(class_properties, indent=2)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
current_year = datetime.datetime.now().year
2424

2525
project = 'DataCrunch Python SDK'
26-
copyright = f'{current_year}, DataCrunch.io'
26+
copyright = f'{current_year}, DataCrunch.io' # noqa: A001
2727
author = 'DataCrunch.io'
2828

2929
try:

examples/containers/environment_variables_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
def print_env_vars(env_vars: dict[str, list[EnvVar]]) -> None:
2828
"""Helper function to print environment variables"""
2929
print('\nCurrent environment variables:')
30-
for container_name, vars in env_vars.items():
30+
for container_name, ev in env_vars.items():
3131
print(f'\nContainer: {container_name}')
32-
for var in vars:
32+
for var in ev:
3333
print(f' {var.name}: {var.value_or_reference_to_secret} ({var.type})')
3434

3535

examples/containers/sglang_deployment_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def cleanup_resources(datacrunch_client: DataCrunchClient) -> None:
8989
print(f'Error during cleanup: {e}')
9090

9191

92-
def graceful_shutdown(signum, frame) -> None:
92+
def graceful_shutdown(signum, _frame) -> None:
9393
"""Handle graceful shutdown on signals."""
9494
print(f'\nSignal {signum} received, cleaning up resources...')
9595
try:

tests/unit_tests/authentication/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_refresh_failed(self, authentication_service, endpoint):
211211
== f'{{"grant_type": "refresh_token", "refresh_token": "{REFRESH_TOKEN}"}}'.encode()
212212
)
213213

214-
def test_is_expired(self, authentication_service, endpoint):
214+
def test_is_expired(self, authentication_service):
215215
# arrange
216216
current_time = time.time()
217217
future_time = current_time + 3600

0 commit comments

Comments
 (0)