-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a comprehensive configuration for pylint. made the following changes to fix pylint warnings: - class names converted to CamelCase - replaced filter() calls with list comprehensions - renamed variable names that conflict with builtins - defined variables for some magic constants added pylint job to CI. also made the following refactorings: - the project now uses dataclasses. added dataclasses dependency for py3.6 - extras/py36-test-dependencies.py now lists regular dependencies as well. - renamed extras/py36-test-dependencies.py to extras/py36-all-dependencies.py - Added FolderRetentionManagerSettings dataclass for storing FolderRetentionManager settings. - Added load_policies_from_settings() method to FolderRetentionManager, which automatically creates policies based on setting values. - Added debug logs to FolderRetentionManager.execute_policies - Replaced all f-strings with "%" formatting in log calls for lazy evaluation - Added HotkdumpParameters dataclass. - Hotkdump class is now constructed with HotkdumpParameters. - Added encoding parameter to write open() calls - Moved the Hotkdump workflow from main to class member run() function . Moved main() method logic from hotkdump_impl.py to main.py - Renamed hotkdump_impl.py to hotkdump.py - Moved switch_cwd method from Hotkdump to utils Fixes #62 Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
- Loading branch information
Showing
14 changed files
with
587 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright 2023 Canonical Limited. | ||
# SPDX-License-Identifier: GPL-3.0 | ||
# SPDX-License-Identifier: GPL-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright 2023 Canonical Limited. | ||
# SPDX-License-Identifier: GPL-3.0 | ||
# SPDX-License-Identifier: GPL-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.