-
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 more pre-commit hooks (again) (#50)
* Add a pre-commit hook to use the black code formatter * Run `pre-commit run -a` * Add a pre-commit hook to enforce Python 3.9+ idioms * Run `pre-commit run -a`
- Loading branch information
Showing
4 changed files
with
284 additions
and
259 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,46 +1,46 @@ | ||
from setuptools import find_packages, setup | ||
|
||
with open('README.md') as fl: | ||
with open("README.md") as fl: | ||
LONG_DESCRIPTION = fl.read() | ||
|
||
setup( | ||
name='Flask-Compress', | ||
name="Flask-Compress", | ||
use_scm_version=True, | ||
url='https://github.com/colour-science/flask-compress', | ||
license='MIT', | ||
author='Thomas Mansencal', | ||
author_email='thomas.mansencal@gmail.com', | ||
url="https://github.com/colour-science/flask-compress", | ||
license="MIT", | ||
author="Thomas Mansencal", | ||
author_email="thomas.mansencal@gmail.com", | ||
description=( | ||
'Compress responses in your Flask app with gzip, deflate, brotli or zstandard.' | ||
"Compress responses in your Flask app with gzip, deflate, brotli or zstandard." | ||
), | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type='text/markdown', | ||
packages=find_packages(exclude=['tests']), | ||
long_description_content_type="text/markdown", | ||
packages=find_packages(exclude=["tests"]), | ||
include_package_data=True, | ||
platforms='any', | ||
python_requires='>=3.9', | ||
platforms="any", | ||
python_requires=">=3.9", | ||
install_requires=[ | ||
'flask', | ||
"flask", | ||
"brotli; platform_python_implementation!='PyPy'", | ||
"brotlicffi; platform_python_implementation=='PyPy'", | ||
"zstandard; platform_python_implementation!='PyPy'", | ||
"zstandard[cffi]; platform_python_implementation=='PyPy'", | ||
], | ||
setup_requires=[ | ||
'setuptools_scm', | ||
"setuptools_scm", | ||
], | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
'Topic :: Software Development :: Libraries :: Python Modules' | ||
] | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
) |
Oops, something went wrong.