Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Sep 9, 2024
1 parent 2abadb8 commit 2165850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nautobot_device_onboarding/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,9 @@ def run(
if self.debug:
self.logger.debug("Checking for last_network_data_sync custom field")
try:
cf = CustomField.objects.get(key="last_network_data_sync")
cf = CustomField.objects.get(key="last_network_data_sync") # pylint:disable=invalid-name
except ObjectDoesNotExist:
cf, _ = CustomField.objects.get_or_create(
cf, _ = CustomField.objects.get_or_create( # pylint:disable=invalid-name
label="Last Network Data Sync",
key="last_network_data_sync",
type=CustomFieldTypeChoices.TYPE_DATE,
Expand Down
2 changes: 1 addition & 1 deletion nautobot_device_onboarding/tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def populate_repo(self, path, url, *args, **kwargs):
"""Simple helper to populate a mock repo with some data."""
os.makedirs(path, exist_ok=True)
os.makedirs(os.path.join(path, "onboarding_command_mappers"), exist_ok=True)
with open(os.path.join(path, "onboarding_command_mappers", "foo_bar.yml"), "w", encoding="utf-8") as fd:
with open(os.path.join(path, "onboarding_command_mappers", "foo_bar.yml"), "w", encoding="utf-8") as fd: # pylint:disable=invalid-name
yaml.dump(
{
"sync_devices": {
Expand Down

0 comments on commit 2165850

Please sign in to comment.