Skip to content

Commit

Permalink
ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang committed Nov 8, 2023
1 parent e7e5531 commit 5e9c185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/tufup/repo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,7 @@ def save_config(self):
)
# write file
config_file_path.write_text(
data=json.dumps(
temp_config_dict, default=str, sort_keys=True, indent=4
),
data=json.dumps(temp_config_dict, default=str, sort_keys=True, indent=4),
encoding='utf-8',
)

Expand Down
10 changes: 6 additions & 4 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,7 @@ def test_init_paths(self):
]
for message, repo_dir, keys_dir in cases:
with self.subTest(msg=message):
repo = Repository(
app_name='test', repo_dir=repo_dir, keys_dir=keys_dir
)
repo = Repository(app_name='test', repo_dir=repo_dir, keys_dir=keys_dir)
# internally we should always have the absolute paths
self.assertTrue(repo.repo_dir.is_absolute())
self.assertTrue(repo.keys_dir.is_absolute())
Expand Down Expand Up @@ -553,7 +551,11 @@ def test_from_config(self):
keys_dir_abs = temp_dir / 'keystore'
cases = [
('absolute paths', repo_dir_abs, keys_dir_abs),
('relative paths', repo_dir_abs.relative_to(temp_dir), keys_dir_abs.relative_to(temp_dir)),
(
'relative paths',
repo_dir_abs.relative_to(temp_dir),
keys_dir_abs.relative_to(temp_dir),
),
]
for message, repo_dir, keys_dir in cases:
with self.subTest(msg=message):
Expand Down

0 comments on commit 5e9c185

Please sign in to comment.