splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

refactor: apply black and isort #417

Closed ghost closed 2 years ago

ghost commented 2 years ago

This PR introduces pre-commit (https://pre-commit.com/) and applies black and isort changes to all the codebase, except examples folder.

All GDI-related repositories (https://github.com/splunk/addonfactory-ucc-generator, https://github.com/splunk/addonfactory-solutions-library-python etc) are already using pre-commit and at least black and isort configuration.

In the next PR we can add pre-commit to the CI to check all the PRs (like, https://github.com/splunk/addonfactory-ucc-generator/blob/067c3b82c7c318687be15a4ea768f396a9755884/.github/workflows/build-test-release.yml#L131-L141).

ghost commented 2 years ago

Let's start with something smaller, like #420.