Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80465a4

Browse files
authoredAug 31, 2018
Merge pull request #89 from mattsb42-aws/blacken
Blacken!
2 parents 52349d4 + 3c2ae28 commit 80465a4

File tree

89 files changed

+2077
-2865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2077
-2865
lines changed
 

‎README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Amazon DynamoDB Encryption Client for Python
1010
:target: https://pypi.org/project/dynamodb-encryption-sdk
1111
:alt: Supported Python Versions
1212

13+
.. image:: https://img.shields.io/badge/code_style-black-000000.svg
14+
:target: https://github.com/ambv/black
15+
:alt: Code style: black
16+
1317
.. image:: https://readthedocs.org/projects/aws-dynamodb-encryption-python/badge/?version=latest
1418
:target: http://aws-dynamodb-encryption-python.readthedocs.io/en/latest/?badge=latest
1519
:alt: Documentation Status

‎doc/conf.py

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,76 @@
11
# pylint: disable=invalid-name
22
"""Sphinx configuration."""
3-
from datetime import datetime
43
import io
54
import os
65
import re
6+
from datetime import datetime
77

8-
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
8+
VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""")
99
HERE = os.path.abspath(os.path.dirname(__file__))
1010

1111

1212
def read(*args):
1313
"""Reads complete file contents."""
14-
return io.open(os.path.join(HERE, *args), encoding='utf-8').read()
14+
return io.open(os.path.join(HERE, *args), encoding="utf-8").read()
1515

1616

1717
def get_release():
1818
"""Reads the release (full three-part version number) from this module."""
19-
init = read('..', 'src', 'dynamodb_encryption_sdk', 'identifiers.py')
19+
init = read("..", "src", "dynamodb_encryption_sdk", "identifiers.py")
2020
return VERSION_RE.search(init).group(1)
2121

2222

2323
def get_version():
2424
"""Reads the version (MAJOR.MINOR) from this module."""
2525
_release = get_release()
26-
split_version = _release.split('.')
26+
split_version = _release.split(".")
2727
if len(split_version) == 3:
28-
return '.'.join(split_version[:2])
28+
return ".".join(split_version[:2])
2929
return _release
3030

3131

32-
project = u'dynamodb-encryption-sdk-python'
32+
project = u"dynamodb-encryption-sdk-python"
3333
version = get_version()
3434
release = get_release()
3535

3636
# Add any Sphinx extension module names here, as strings. They can be extensions
3737
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
38-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
39-
'sphinx.ext.intersphinx', 'sphinx.ext.todo',
40-
'sphinx.ext.coverage', 'sphinx.ext.autosummary',
41-
'sphinx.ext.napoleon', 'sphinx.ext.viewcode']
38+
extensions = [
39+
"sphinx.ext.autodoc",
40+
"sphinx.ext.doctest",
41+
"sphinx.ext.intersphinx",
42+
"sphinx.ext.todo",
43+
"sphinx.ext.coverage",
44+
"sphinx.ext.autosummary",
45+
"sphinx.ext.napoleon",
46+
"sphinx.ext.viewcode",
47+
]
4248
napoleon_include_special_with_doc = False
4349

4450
# Add any paths that contain templates here, relative to this directory.
45-
templates_path = ['_templates']
51+
templates_path = ["_templates"]
4652

47-
source_suffix = '.rst' # The suffix of source filenames.
48-
master_doc = 'index' # The master toctree document.
53+
source_suffix = ".rst" # The suffix of source filenames.
54+
master_doc = "index" # The master toctree document.
4955

50-
copyright = u'%s, Amazon' % datetime.now().year # pylint: disable=redefined-builtin
56+
copyright = u"%s, Amazon" % datetime.now().year # pylint: disable=redefined-builtin
5157

5258
# List of directories, relative to source directory, that shouldn't be searched
5359
# for source files.
54-
exclude_trees = ['_build']
60+
exclude_trees = ["_build"]
5561

56-
pygments_style = 'sphinx'
62+
pygments_style = "sphinx"
5763

5864
autoclass_content = "both"
59-
autodoc_default_flags = ['show-inheritance', 'members']
60-
autodoc_member_order = 'bysource'
65+
autodoc_default_flags = ["show-inheritance", "members"]
66+
autodoc_member_order = "bysource"
6167

62-
html_theme = 'sphinx_rtd_theme'
63-
html_static_path = ['_static']
64-
htmlhelp_basename = '%sdoc' % project
68+
html_theme = "sphinx_rtd_theme"
69+
html_static_path = ["_static"]
70+
htmlhelp_basename = "%sdoc" % project
6571

6672
# Example configuration for intersphinx: refer to the Python standard library.
67-
intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
73+
intersphinx_mapping = {"python": ("http://docs.python.org/", None)}
6874

6975
# autosummary
7076
autosummary_generate = True

0 commit comments

Comments
 (0)
Please sign in to comment.