Skip to content

Commit

Permalink
Fix & check, PEP8 before tag v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Oct 10, 2016
1 parent 4a60f24 commit 2f97743
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions twitterwall.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import signal
import sys

wall = None


class TwitterConnection:
tweet_api_url = 'https://api.twitter.com/1.1/search/tweets.json'
Expand Down Expand Up @@ -246,7 +248,7 @@ def run(self, init_cnt, interval):
@click.option('--lang', '-l', default=None, type=click.STRING,
help='Language (ISO 639-1) code.')
@click.option('--author', '-a', multiple=True, type=click.STRING,
help='Nickname of tweet author (multiple).')
help='Nickname of allowed tweet author (multiple).')
@click.option('--blocked-author', '-b', multiple=True, type=click.STRING,
help='Nickname of blocked tweet author (multiple).')
@click.option('--no-retweets', is_flag=True,
Expand All @@ -259,15 +261,15 @@ def run(self, init_cnt, interval):
help='Min number of followers.')
@click.option('--followers-max', default=None, type=click.INT,
help='Max number of followers.')
@click.option('--no-swag', '-x', is_flag=True,
help='Don\'t style with colors and bold/underline on output.')
@click.option('--swag/--no-swag', is_flag=True, default=True,
help='Style (or not) with colors and bold/underline on output.')
@click.version_option(version='0.1', prog_name='TwitterWall CLI')
def twitter_wall(config, query, count, interval, lang, no_retweets,
retweets_min, retweets_max, followers_min, followers_max,
author, blocked_author, no_swag):
author, blocked_author, swag):
"""Simple Twitter Wall for loading and printing desired tweets in CLI"""
global wall
wall = CLIWall() if no_swag else CLIColorfulWall()
wall = CLIColorfulWall() if swag else CLIWall()

authcfg = configparser.ConfigParser()
authcfg.read_file(config)
Expand Down

0 comments on commit 2f97743

Please sign in to comment.