Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in query string #2687

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion augur/tasks/start_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations

Check warning on line 1 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0114: Missing module docstring (missing-module-docstring) Raw Output: augur/tasks/start_tasks.py:1:0: C0114: Missing module docstring (missing-module-docstring)
from typing import List
import time
import logging
Expand All @@ -10,19 +10,19 @@
import random
#from celery.result import AsyncResult
from celery import signature
from celery import group, chain, chord, signature

Check warning on line 13 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0404: Reimport 'signature' (imported line 12) (reimported) Raw Output: augur/tasks/start_tasks.py:13:0: W0404: Reimport 'signature' (imported line 12) (reimported)
from sqlalchemy import or_, and_,tuple_, update


from augur.tasks.github import *

Check warning on line 17 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0401: Wildcard import augur.tasks.github (wildcard-import) Raw Output: augur/tasks/start_tasks.py:17:0: W0401: Wildcard import augur.tasks.github (wildcard-import)
if os.environ.get('AUGUR_DOCKER_DEPLOY') != "1":
from augur.tasks.data_analysis import *

Check warning on line 19 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0401: Wildcard import augur.tasks.data_analysis (wildcard-import) Raw Output: augur/tasks/start_tasks.py:19:4: W0401: Wildcard import augur.tasks.data_analysis (wildcard-import)
from augur.tasks.github.detect_move.tasks import detect_github_repo_move_core, detect_github_repo_move_secondary

Check warning on line 20 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.github.detect_move.tasks import detect_github_repo_move_core, detect_github_repo_move_secondary" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:20:0: C0413: Import "from augur.tasks.github.detect_move.tasks import detect_github_repo_move_core, detect_github_repo_move_secondary" should be placed at the top of the module (wrong-import-position)
from augur.tasks.github.releases.tasks import collect_releases

Check warning on line 21 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.github.releases.tasks import collect_releases" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:21:0: C0413: Import "from augur.tasks.github.releases.tasks import collect_releases" should be placed at the top of the module (wrong-import-position)
from augur.tasks.github.repo_info.tasks import collect_repo_info, collect_linux_badge_info

Check warning on line 22 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.github.repo_info.tasks import collect_repo_info, collect_linux_badge_info" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:22:0: C0413: Import "from augur.tasks.github.repo_info.tasks import collect_repo_info, collect_linux_badge_info" should be placed at the top of the module (wrong-import-position)
from augur.tasks.github.pull_requests.files_model.tasks import process_pull_request_files

Check warning on line 23 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.github.pull_requests.files_model.tasks import process_pull_request_files" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:23:0: C0413: Import "from augur.tasks.github.pull_requests.files_model.tasks import process_pull_request_files" should be placed at the top of the module (wrong-import-position)
from augur.tasks.github.pull_requests.commits_model.tasks import process_pull_request_commits

Check warning on line 24 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.github.pull_requests.commits_model.tasks import process_pull_request_commits" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:24:0: C0413: Import "from augur.tasks.github.pull_requests.commits_model.tasks import process_pull_request_commits" should be placed at the top of the module (wrong-import-position)
from augur.tasks.git.dependency_tasks.tasks import process_ossf_dependency_metrics

Check warning on line 25 in augur/tasks/start_tasks.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0413: Import "from augur.tasks.git.dependency_tasks.tasks import process_ossf_dependency_metrics" should be placed at the top of the module (wrong-import-position) Raw Output: augur/tasks/start_tasks.py:25:0: C0413: Import "from augur.tasks.git.dependency_tasks.tasks import process_ossf_dependency_metrics" should be placed at the top of the module (wrong-import-position)
from augur.tasks.github.traffic.tasks import collect_github_repo_clones_data
from augur.tasks.gitlab.merge_request_task import collect_gitlab_merge_requests, collect_merge_request_comments, collect_merge_request_metadata, collect_merge_request_reviewers, collect_merge_request_commits, collect_merge_request_files
from augur.tasks.gitlab.issues_task import collect_gitlab_issues, collect_gitlab_issue_comments
Expand Down Expand Up @@ -339,7 +339,7 @@
#TODO: Isaac needs to normalize the status's to be abstract in the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W0511: TODO: Isaac needs to normalize the status's to be abstract in the (fixme)

#collection_status table once augur dev is less unstable.
with DatabaseSession(logger,engine) as session:
query = s.sql.text(f"""UPDATE repo SET secondary_staus = {CollectionState.PENDING.value}"""
query = s.sql.text(f"""UPDATE repo SET secondary_status = {CollectionState.PENDING.value}"""
f""" WHERE secondary_status = '{CollectionState.ERROR.value}' ;"""
f"""UPDATE repo SET core_status = {CollectionState.PENDING.value}"""
f""" WHERE core_status = '{CollectionState.ERROR.value}' ;"""
Expand Down
Loading