Skip to content

Commit

Permalink
Reformat files with newer black version
Browse files Browse the repository at this point in the history
  • Loading branch information
felixedel committed Jan 5, 2024
1 parent 010a0a1 commit 4b649b3
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion tests/scraper/connections/test_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_get_app_auth_headers():


def test_get_installation_key(mock_github_api_endpoints):

mock_github_api_endpoints(GITHUB_URL)
# Initialize GitHubConnection
gh_con = GitHubConnection(**GITHUB_CON_CONFIG)
Expand Down
1 change: 0 additions & 1 deletion tests/scraper/connections/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def test_init_gerrit_con_invalid_webtype(patch_es):


def test_init_github_con(patch_es, mock_github_api_endpoints):

mock_github_api_endpoints("https://localhost/github")
config = {
"ES_HOST": "localhost",
Expand Down
1 change: 0 additions & 1 deletion tests/scraper/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def test_event_installation_created(
def test_event_installation_deleted(
scrape_mock, patched_connections, payload_webhook_installation_deleted
):

# Ensure that some repositories can be looked up for this installation as they
# are not part of the payload for a delete event.
with mock.patch(
Expand Down
2 changes: 0 additions & 2 deletions tests/scraper/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@


class MockContents:

FILE = "file"
DIR = "dir"

Expand All @@ -78,7 +77,6 @@ def __init__(self, path, type):


class MockGitHubRepository(GitHubRepository):

# TODO (felix): Improve the mocked repository class and allow mocking
# single repositories for certain test cases. Currently, all test repos
# are defined in this class definition.
Expand Down
1 change: 0 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def test_views_reachable(flask_client, endpoint, expected):


def test_detail_view(flask_client, es_client):

# Build a simple ES response, containing a minimal role result
response = {
"hits": {
Expand Down
1 change: 0 additions & 1 deletion zubbi/scraper/connections/gerrit.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def build_directory_url(self, repo_name, directory_path):


class GerritConnection(GitConnection):

WEB_URL_BUILDERS = {"cgit": CGitUrlBuilder, "gitweb": GitwebUrlBuilder}

# TODO (felix): Should we ensure that only the user that started zubbi has access rights
Expand Down
1 change: 0 additions & 1 deletion zubbi/scraper/connections/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

class GitHubConnection:
def __init__(self, url, app_id, app_key):

self.base_url = url
self.api_url = urljoin(url, "api/v3")
self.graphql_url = urljoin(url, "api/graphql")
Expand Down
1 change: 0 additions & 1 deletion zubbi/scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def scrape(self):
return job_files, role_files

def scrape_job_files(self):

job_files = self.iterate_directory(
REPO_ROOT,
whitelist=ZUUL_DIRECTORIES + ZUUL_FILES + self.extra_config_paths,
Expand Down
7 changes: 0 additions & 7 deletions zubbi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def get_context(self, **kwargs):


class IndexView(ZubbiMethodView):

endpoint = "index"
rule = "/"
template_name = "index.html"
Expand All @@ -91,7 +90,6 @@ def get(self):


class SearchView(ZubbiMethodView):

endpoint = "search"
rule = "/search"
template_name = "search.html"
Expand Down Expand Up @@ -190,7 +188,6 @@ def get(self):


class DetailView(ZubbiMethodView):

endpoint = "details"
rule = "/detail/<path:repo>/<block_type>/<name>"
template_name = "details.html"
Expand All @@ -215,7 +212,6 @@ def get(self, repo, block_type, name):


class HowToView(ZubbiMethodView):

endpoint = "how-to"
rule = "/how-to"
template_name = "how-to.html"
Expand All @@ -226,7 +222,6 @@ def get(self):


class AutoCompleteView(ZubbiMethodView):

endpoint = "auto-complete"
rule = "/api/search/autocomplete"
template_name = None
Expand Down Expand Up @@ -261,7 +256,6 @@ def get(self):


class WebhookView(ZubbiMethodView):

endpoint = "webhook"
rule = "/api/webhook"
template_name = None
Expand Down Expand Up @@ -320,7 +314,6 @@ def check_event(self, headers):


class LmzifyView(IndexView):

endpoint = "lmzify"
rule = "/lmzify"
template_name = "lmzify.html"
Expand Down

0 comments on commit 4b649b3

Please sign in to comment.