Clean up refactored code #101
Annotations
21 errors and 2 warnings
/home/runner/work/modbot/modbot/scripts/modapps.py#L1
"""
Mod Apps Parser/Poster
One caveat is that the username field must be sanitized (i.e. ensured valid) in the CSV prior to running this script.
"""
-
import argparse
import csv
from datetime import datetime, timedelta
import re
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py#L3
Revision ID: 02533d88ffd0
Revises:
Create Date: 2021-03-04 04:28:47.138468+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "02533d88ffd0"
|
src/old/menuupdater.py#L2
're' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py#L3
Revision ID: a2be73588d9d
Revises: 02533d88ffd0
Create Date: 2021-05-03 17:46:42.655713+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "a2be73588d9d"
|
src/old/menuupdater.py#L5
'praw' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py#L3
Revision ID: ef9e7017d686
Revises: a2be73588d9d
Create Date: 2021-11-09 02:22:38.435818+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "ef9e7017d686"
down_revision = "a2be73588d9d"
|
src/old/menuupdater.py#L8
'constants.post_constants' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py#L3
Revision ID: a35048950546
Revises: ef9e7017d686
Create Date: 2022-05-31 03:01:17.890458+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "a35048950546"
down_revision = "ef9e7017d686"
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py#L3
Revision ID: 03f4360f81fc
Revises: d36823f77b1f
Create Date: 2022-09-24 22:08:37.600621+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "03f4360f81fc"
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py#L3
Revision ID: d36823f77b1f
Revises: a35048950546
Create Date: 2022-09-24 21:00:09.062636+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "d36823f77b1f"
|
linting
Linting failures detected. See check runs with annotations for details.
|
/home/runner/work/modbot/modbot/scripts/modapps.py#L1
"""
Mod Apps Parser/Poster
One caveat is that the username field must be sanitized (i.e. ensured valid) in the CSV prior to running this script.
"""
-
import argparse
import csv
from datetime import datetime, timedelta
import re
|
src/old/menuupdater.py#L2
're' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py#L3
Revision ID: 02533d88ffd0
Revises:
Create Date: 2021-03-04 04:28:47.138468+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "02533d88ffd0"
|
src/old/menuupdater.py#L5
'praw' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py#L3
Revision ID: a2be73588d9d
Revises: 02533d88ffd0
Create Date: 2021-05-03 17:46:42.655713+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "a2be73588d9d"
|
src/old/menuupdater.py#L8
'constants.post_constants' imported but unused (F401)
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py#L3
Revision ID: ef9e7017d686
Revises: a2be73588d9d
Create Date: 2021-11-09 02:22:38.435818+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "ef9e7017d686"
down_revision = "a2be73588d9d"
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py#L3
Revision ID: a35048950546
Revises: ef9e7017d686
Create Date: 2022-05-31 03:01:17.890458+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "a35048950546"
down_revision = "ef9e7017d686"
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py#L3
Revision ID: 03f4360f81fc
Revises: d36823f77b1f
Create Date: 2022-09-24 22:08:37.600621+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "03f4360f81fc"
|
/home/runner/work/modbot/modbot/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py#L3
Revision ID: d36823f77b1f
Revises: a35048950546
Create Date: 2022-09-24 21:00:09.062636+00:00
"""
+
from alembic import op
# revision identifiers, used by Alembic.
revision = "d36823f77b1f"
|
linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v1, wearerequired/lint-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
linting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v1, wearerequired/lint-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|