Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Cline <[email protected]>
  • Loading branch information
jeremycline committed Mar 23, 2017
1 parent 72f5b0b commit c369715
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions anitya/api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
_BASE_ARG_PARSER = reqparse.RequestParser(trim=True, bundle_errors=True)
_BASE_ARG_PARSER.add_argument('access_token', type=str)


class ProjectsResource(Resource):
"""
The ``api/v2/projects/`` API endpoint.
Expand Down
3 changes: 2 additions & 1 deletion anitya/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def parse_api_token(f):
# https://fedoraproject.org/wiki/Infrastructure/Authentication#release-monitoring.org
#
# To add new entries this list:
# * request changes as per https://fedoraproject.org/wiki/Infrastructure/Authentication#Registering_new_scopes
# * request changes as per
# https://fedoraproject.org/wiki/Infrastructure/Authentication#Registering_new_scopes
# * amend _DEFINED_SCOPES below
# * amend anitya.default_config.OIDC_SCOPES
_BASE_SCOPE_URL = "https://release-monitoring.org/oidc/"
Expand Down
5 changes: 2 additions & 3 deletions request_oidc_credentials.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""Helper to request live OIDC access permissions from FAS"""
import json
import os.path
import webbrowser
from threading import Thread
try:
# Default to Python 3
from http.server import HTTPServer, BaseHTTPRequestHandler
Expand All @@ -14,7 +13,6 @@
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from urlparse import urlparse, parse_qs

import requests
from requests_oauthlib import OAuth2Session

AUTH_TIMEOUT = 300
Expand Down Expand Up @@ -95,5 +93,6 @@ def main():
json.dump(oidc_credentials, f)
print("OIDC client access details saved as " + CREDENTIALS_FILE)


if __name__ == "__main__":
main()

0 comments on commit c369715

Please sign in to comment.