fixes for flake8
@@ -29,6 +29,12 @@ Configuration parameters:
'{repo} {issues}/{pull_requests}')*
format_notifications: Format of `{notification}` status placeholder.
(default ' N{notifications_count}')
+ github_api_url: Change only if using Enterprise Github to something like
+ https://github.company.com/api/v3.
+ (default 'https://api.github.com')
+ github_url: Change only if using Enterprise Github to somethig like
+ https://github.company.com.
+ (default 'https://github.com/')
notifications: Type of notifications can be `all` for all notifications or
`repo` to only get notifications for the repo specified. If repo is
not provided then all notifications will be checked.
@@ -37,12 +43,6 @@ Configuration parameters:
(default 'ultrabug/py3status')
username: Github username, needed to check notifications.
(default None)
- github_api_url: Change only if using Enterprise Github to something like
- https://github.company.com/api/v3.
- (default 'https://api.github.com')
- github_url: Change only if using Enterprise Github to somethig like
- https://github.company.com.
- (default 'https://github.com/')
Format placeholders:
{issues} Number of open issues.
@@ -84,7 +84,6 @@ except ImportError:
import urllib.parse as urlparse
-
class Py3status:
auth_token = None
button_action = 3
@@ -92,11 +91,11 @@ class Py3status:
cache_timeout = 60
format = None
format_notifications = ' N{notifications_count}'
+ github_api_url = 'https://api.github.com'
+ github_url = 'https://github.com/'
notifications = 'all'
repo = 'ultrabug/py3status'
username = None
- github_api_url = 'https://api.github.com'
- github_url = 'https://github.com/'
def post_config_hook(self):
self.first = True
