-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a pre-commit hook to check the Dependabot config file schema * Add a pre-commit hook to sort imports * Run `pre-commit run -a` * Add a pre-commit hook to lint the code using flake8 Configure flake8 to use black-compatible linting rules. This prepares for using black to auto-format the code. * Manually resolve flake8-reported lint issues
- Loading branch information
Showing
6 changed files
with
58 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
from .flask_compress import Compress | ||
|
||
# _version.py is generated by setuptools_scm when building the package, it is not versioned. | ||
# If missing, this means that the imported code was most likely the git repository, that was | ||
# installed without the "editable" mode. | ||
# _version.py is generated by setuptools_scm when building the package. | ||
# It is not version-controlled, so if it is missing, this likely means that | ||
# the imported code was installed from the git repo without using "editable" mode. | ||
try: | ||
from ._version import __version__ | ||
except ImportError: | ||
__version__ = "0" | ||
|
||
|
||
__all__ = ("Compress",) |
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
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