Skip to content

Commit ba44898

Browse files
committed
Converted Code Style to Black
Wanted to ensure a consistent code style without worrying about format, so converted the project to Black.
1 parent 9f264f5 commit ba44898

22 files changed

+1546
-819
lines changed

.idea/watcherTasks.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Data integration process management made easy!
44

55
[![Coverage Status](https://coveralls.io/repos/github/OpenDataAlex/process_tracker_python/badge.svg?branch=master)](https://coveralls.io/github/OpenDataAlex/process_tracker_python?branch=master)
66
[![Build Status](https://travis-ci.org/OpenDataAlex/process_tracker_python.svg?branch=master)](https://travis-ci.org/OpenDataAlex/process_tracker_python)
7+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
78

89
This is the Python implementation of the ProcessTracker framework. ProcessTracker builds a standard framework that is
910
tool agnostic. If you are working with data integration/cleansing processes within Python (i.e. using PySpark, Pandas, etc.)

process_tracker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from process_tracker.extract_tracker import ExtractTracker
22
from process_tracker.process_tracker import ProcessTracker
33

4-
__version__ = '0.2.0'
4+
__version__ = "0.2.0"

process_tracker/cli.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from process_tracker.utilities.logging import console
99

1010
data_store = DataStore()
11-
logger = logging.getLogger('Process Tracker')
11+
logger = logging.getLogger("Process Tracker")
1212
logger.addHandler(console)
1313

1414

@@ -42,8 +42,8 @@ def main():
4242

4343

4444
@main.command()
45-
@click.option('-t', '--topic', help='The topic being created')
46-
@click.option('-n', '--name', help='The name for the topic.')
45+
@click.option("-t", "--topic", help="The topic being created")
46+
@click.option("-n", "--name", help="The name for the topic.")
4747
def create(topic, name):
4848
"""
4949
Create an item that is within the valid topics list.
@@ -52,13 +52,13 @@ def create(topic, name):
5252
:param name: The name of the topic item to be added.
5353
:type name: string
5454
"""
55-
click.echo('Attempting to create %s with name %s' % (topic, name))
55+
click.echo("Attempting to create %s with name %s" % (topic, name))
5656
data_store.topic_creator(topic=topic, name=name)
5757

5858

5959
@main.command()
60-
@click.option('-t', '--topic', help='The topic being created')
61-
@click.option('-n', '--name', help='The name for the topic.')
60+
@click.option("-t", "--topic", help="The topic being created")
61+
@click.option("-n", "--name", help="The name for the topic.")
6262
def delete(topic, name):
6363
"""
6464
Delete an item that is within the valid topics list and not a pre-loaded item.
@@ -67,15 +67,17 @@ def delete(topic, name):
6767
:param name: The name of the topic item to be deleted.
6868
:type name: string
6969
"""
70-
click.echo('Attempting to delete %s with name %s' % (topic, name))
70+
click.echo("Attempting to delete %s with name %s" % (topic, name))
7171
data_store.topic_deleter(topic=topic, name=name)
7272

7373

7474
@main.command()
75-
@click.option('-t', '--topic', help='The topic being created')
76-
@click.option('-i', '--initial-name', help='The name that needs to be changed.')
77-
@click.option('-n', '--name', help='The new name for the topic.')
75+
@click.option("-t", "--topic", help="The topic being created")
76+
@click.option("-i", "--initial-name", help="The name that needs to be changed.")
77+
@click.option("-n", "--name", help="The new name for the topic.")
7878
def update(topic, initial_name, name):
7979

80-
click.echo('Attempting to update %s with name %s to %s' % (topic, initial_name, name))
80+
click.echo(
81+
"Attempting to update %s with name %s to %s" % (topic, initial_name, name)
82+
)
8183
data_store.topic_updater(topic=topic, initial_name=initial_name, name=name)

0 commit comments

Comments
 (0)