Skip to content

Commit 8efd3ee

Browse files
authored
V4 insitute code formatting standard using Black (#1626)
- Formats the codebase using Black (https://black.readthedocs.io/en/stable/) - Updates codegen logic to use black instead of yapf for code formatting - Adds a pre-commit hook specification for running black prior to commit - Adds instructions to contributing.md for setting up pre-commit. - Adds a circleci test case to check that formatting is valid
1 parent e6dea7e commit 8efd3ee

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

_plotly_geo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# https://packaging.python.org/guides/packaging-namespace-packages/
22
# pkgutil-style-namespace-packages
3-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
3+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def readme():
66
parent_dir = os.path.dirname(os.path.realpath(__file__))
7-
with open(os.path.join(parent_dir, 'README.md')) as f:
7+
with open(os.path.join(parent_dir, "README.md")) as f:
88
return f.read()
99

1010

@@ -31,8 +31,6 @@ def readme():
3131
"Topic :: Scientific/Engineering :: Visualization",
3232
],
3333
license="MIT",
34-
packages=[
35-
"_plotly_geo",
36-
],
37-
package_data={'_plotly_geo': ['package_data/*']},
34+
packages=["_plotly_geo"],
35+
package_data={"_plotly_geo": ["package_data/*"]},
3836
)

0 commit comments

Comments
 (0)