-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General refactoring and code quality improvement (#54)
- Introduced a new sub-module called "clients" and moved all clients to it, namely CompassClient, CompassParserClient, and CompassRootClient. - Moved RBAC-related models (previously under `types.py`) under the `models` module and renamed it accordingly. - Introduced ruff for code formatting, instead of black. Ruff is getting increased traction from the community to its features and efficiency. - Reformatted the files to ensure code and docstrings are wrapped at 88 chars as suggested by Ruff. - Removed the Logger and LoggerLevel classes and used `getLogger` instead to rely on the customer to configure their logging. - Move models from `__init__.py` to `models` module - Updated README.md file.
- Loading branch information
Showing
18 changed files
with
855 additions
and
579 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: "5.13.2" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.1 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files", "--line-length", "120", "--py", "39"] | ||
- repo: https://github.com/psf/black | ||
rev: "24.4.0" | ||
hooks: | ||
- id: black | ||
args: ["--line-length=120", "--target-version=py39"] | ||
- repo: https://github.com/pycqa/autoflake | ||
rev: "v2.3.1" | ||
hooks: | ||
- id: autoflake | ||
args: ["--in-place", "--remove-all-unused-imports", "--expand-star-imports", "--ignore-init-module-imports", "-r"] | ||
# Run the linter. | ||
- id: ruff | ||
args: [--fix] | ||
# Run the formatter. | ||
- id: ruff-format |
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.