-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit has had
black
(https://github.com/psf/black), the autof…
…ormatter, run on the `wagtailflags` package and `setup.py` It also adds `black --check` to the `tox` `lint` environment and adds a section in `CONTRIBUTING.md` about code style and tools.
- Loading branch information
Showing
17 changed files
with
336 additions
and
327 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py36', 'py38'] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
( | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.tox | ||
| \*.egg-info | ||
| _build | ||
| build | ||
| dist | ||
| migrations | ||
| site | ||
| \*.json | ||
| \*.csv | ||
)/ | ||
) | ||
''' | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] |
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,44 +1,34 @@ | ||
from setuptools import find_packages, setup | ||
|
||
install_requires = ["wagtail>=2.3,<2.9", "django-flags>=4.2,<5.0"] | ||
|
||
long_description = open('README.md', 'r').read() | ||
|
||
install_requires = [ | ||
'wagtail>=2.3,<2.9', | ||
'django-flags>=4.2,<5.0' | ||
] | ||
|
||
testing_extras = [ | ||
'coverage>=3.7.0', | ||
] | ||
testing_extras = ["coverage>=3.7.0"] | ||
|
||
setup( | ||
name='wagtail-flags', | ||
url='https://github.com/cfpb/wagtail-flags', | ||
author='CFPB', | ||
author_email='tech@cfpb.gov', | ||
description='Feature flags for Wagtail sites', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
license='CC0', | ||
version='4.2.0', | ||
name="wagtail-flags", | ||
url="https://github.com/cfpb/wagtail-flags", | ||
author="CFPB", | ||
author_email="tech@cfpb.gov", | ||
description="Feature flags for Wagtail sites", | ||
long_description=open("README.md", "r").read(), | ||
long_description_content_type="text/markdown", | ||
license="CC0", | ||
version="4.2.0", | ||
include_package_data=True, | ||
packages=find_packages(), | ||
install_requires=install_requires, | ||
extras_require={ | ||
'testing': testing_extras, | ||
}, | ||
extras_require={"testing": testing_extras}, | ||
classifiers=[ | ||
'Framework :: Django', | ||
'Framework :: Django :: 1.11', | ||
'Framework :: Django :: 2.0', | ||
'Framework :: Django :: 2.1', | ||
'Framework :: Django :: 2.2', | ||
'Framework :: Wagtail', | ||
'Framework :: Wagtail :: 2', | ||
'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', | ||
'License :: Public Domain', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
] | ||
"Framework :: Django", | ||
"Framework :: Django :: 1.11", | ||
"Framework :: Django :: 2.0", | ||
"Framework :: Django :: 2.1", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Wagtail", | ||
"Framework :: Wagtail :: 2", | ||
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
"License :: Public Domain", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
], | ||
) |
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 +1 @@ | ||
default_app_config = 'wagtailflags.apps.WagtailFlagsAppConfig' | ||
default_app_config = "wagtailflags.apps.WagtailFlagsAppConfig" |
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
Oops, something went wrong.