diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e43fd5..cd482a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,7 +174,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: magmalake/customs@v0.3.0 + - uses: magmalake/customs@v0.4.0 # `test` and `image`, the checks main's ruleset requires: each passes once # every architecture's job has (skipped counts). diff --git a/pipelines/gharchive_index.mojo b/pipelines/gharchive_index.mojo index 06986de..8ef9621 100644 --- a/pipelines/gharchive_index.mojo +++ b/pipelines/gharchive_index.mojo @@ -17,7 +17,6 @@ events are skipped. """ from std.os import getenv, setenv -from std.time import perf_counter_ns from dista import ObjectRef, Task from morca import Ctx, Daily, Day, Mapped, Pipeline, Step, Tasks, morca_main diff --git a/pipelines/mojo_activity.mojo b/pipelines/mojo_activity.mojo index c22cc24..7297f6a 100644 --- a/pipelines/mojo_activity.mojo +++ b/pipelines/mojo_activity.mojo @@ -37,7 +37,6 @@ from dista import ObjectRef, Task from morca import Ctx, Daily, Day, Mapped, Pipeline, Step, Tasks, morca_main from morca.civil import now from morca.tables import BatchBuilder, Table, append, ensure_table, scan, table -from parquet import RecordBatch from activity import ( ActivityRow, diff --git a/pipelines/mojo_live.mojo b/pipelines/mojo_live.mojo index a534d83..3f7fc38 100644 --- a/pipelines/mojo_live.mojo +++ b/pipelines/mojo_live.mojo @@ -43,7 +43,7 @@ from morca.civil import now from morca.tables import BatchBuilder, append, ensure_table, scan, table from parquet import RecordBatch -from cols import col, i64_at, str_at +from cols import col, str_at from fetch import github_graphql from jscan import days_from_civil from lake import ( @@ -59,10 +59,8 @@ from live import ( Asked, ask_heads, LiveCommit, - heads_query, history_query, new_since, - parse_heads, parse_history, ) from replace import replace_files diff --git a/pipelines/mojo_repos.mojo b/pipelines/mojo_repos.mojo index 349f30c..19cf0c0 100644 --- a/pipelines/mojo_repos.mojo +++ b/pipelines/mojo_repos.mojo @@ -36,7 +36,7 @@ from morca.civil import now from morca.tables import BatchBuilder, append, ensure_table, scan, table from parquet import RecordBatch -from cols import col, i64_at, str_at, str_range +from cols import col, i64_at, str_at from detect import Candidate, RepoInfo, Verdict, note, search_candidates, verify from hourindex import candidates_from from days import days_of diff --git a/pipelines/mojo_retool.mojo b/pipelines/mojo_retool.mojo index e7a6087..16a85bb 100644 --- a/pipelines/mojo_retool.mojo +++ b/pipelines/mojo_retool.mojo @@ -28,7 +28,6 @@ from morca import Ctx, Gather, Name, Pipeline, Step, Tasks, morca_main from morca.keyed import Keyed from morca.tables import ensure_table, scan, table from dista import Seq -from parquet import RecordBatch from history import CommitRow, History, MigrationRow, TagRow, read_history from historyrows import ( diff --git a/pipelines/mojo_versions.mojo b/pipelines/mojo_versions.mojo index f797a7f..0d9418d 100644 --- a/pipelines/mojo_versions.mojo +++ b/pipelines/mojo_versions.mojo @@ -37,7 +37,7 @@ from dista import ObjectRef, Seq, Task from morca.civil import now from morca import Ctx, Gather, Name, Pipeline, Step, Tasks, morca_main from morca.keyed import Keyed -from morca.tables import ensure_table, scan, table +from morca.tables import ensure_table, scan from deps import RepoDep, decode_deps from headversion import HeadVersion, read_head_version diff --git a/src/activity.mojo b/src/activity.mojo index 79079dd..13b3795 100644 --- a/src/activity.mojo +++ b/src/activity.mojo @@ -15,7 +15,7 @@ from dista import Seq from morca.tables import BatchBuilder, load_dataset from parquet import RecordBatch -from cols import bool_at, col, i32_at, i64_at, str_at, str_range +from cols import bool_at, col, i32_at, i64_at, str_at from days import day_text, days_of from jscan import Range, field, text, timestamp_micros from lake import ( diff --git a/src/console_live.mojo b/src/console_live.mojo index ed22fd8..ac9e9c7 100644 --- a/src/console_live.mojo +++ b/src/console_live.mojo @@ -18,8 +18,7 @@ from console_layout import _empty, _page from console_pages import page_json, page_line from jscan import micros_to_iso from lake import try_load -from live import Freshness, LiveCommit, freshness -from model import day +from live import LiveCommit, freshness from swap import Swap from threads import OpaquePtr diff --git a/src/headversion.mojo b/src/headversion.mojo index 7c9e5b1..d151550 100644 --- a/src/headversion.mojo +++ b/src/headversion.mojo @@ -17,7 +17,6 @@ root `pixi.toml`, `mojoproject.toml`, `pyproject.toml`, `requirements*.txt` and a `recipe.yaml` of its own), the rows of `mojo.repo_deps`. """ -from std.os import getenv from deps import Dep, declared_count, dedupe, encode_deps, is_recipe, manifest_deps from command import STDERR_DROP, TIMED_OUT, git, remove_tree diff --git a/src/history.mojo b/src/history.mojo index 11a2c37..7448843 100644 --- a/src/history.mojo +++ b/src/history.mojo @@ -18,7 +18,7 @@ from dista import Seq from contributors import AuthorMonth, read_authors from filemix import FileMix -from command import STDERR_DROP, STDERR_MERGE, TIMED_OUT, git, make_dirs, remove_tree +from command import STDERR_DROP, STDERR_MERGE, git, make_dirs, remove_tree from retry import backoff_ms, env_int, log_retry, nap_ms from deps import names_mojo_pkg from versions import ( diff --git a/tests/test_checks.mojo b/tests/test_checks.mojo index 44253b9..0e1c24c 100644 --- a/tests/test_checks.mojo +++ b/tests/test_checks.mojo @@ -10,7 +10,6 @@ from std.testing import TestSuite, assert_equal, assert_false, assert_true from checks import ( Check, CheckRun, - PageFacts, RepoFacts, Tops, notice, diff --git a/tests/test_console_routes.mojo b/tests/test_console_routes.mojo index 58792c1..e14383a 100644 --- a/tests/test_console_routes.mojo +++ b/tests/test_console_routes.mojo @@ -9,9 +9,9 @@ from std.testing import TestSuite, assert_equal, assert_false, assert_true from flare.http import Request, Response, Router from checks import CheckRun -from console_ai import html_text, llms_txt +from console_ai import html_text from console_cache import Cache, RepoData -from console_repo import Months, chart_view, month_counts, month_span +from console_repo import chart_view, month_counts, month_span from issues import IssueRow from console_layout import SITE_URL from console_live import LiveData diff --git a/tests/test_datafiles.mojo b/tests/test_datafiles.mojo index 3c50170..cb01dd5 100644 --- a/tests/test_datafiles.mojo +++ b/tests/test_datafiles.mojo @@ -15,7 +15,6 @@ from iceberg.io import FileIO from iceberg.schema import Schema from iceberg.transforms import PartitionField, PartitionSpec, parse_transform from lake import EVENTS_SCHEMA -from morca.tables import DataFiles as FileEntries from morca.tables import Table, write_files diff --git a/tests/test_embedtext.mojo b/tests/test_embedtext.mojo index cb73cbe..9cc4ae6 100644 --- a/tests/test_embedtext.mojo +++ b/tests/test_embedtext.mojo @@ -1,7 +1,7 @@ # The input text, hashes and vector bytes of mojo.repo_embeddings, and a # batch of rows read back as written. No model needed. -from std.testing import assert_equal, assert_not_equal, assert_true, TestSuite +from std.testing import assert_equal, assert_not_equal, TestSuite from embedtext import ( EmbedRow, diff --git a/tests/test_eventsoff.mojo b/tests/test_eventsoff.mojo index 3b9909c..722e35f 100644 --- a/tests/test_eventsoff.mojo +++ b/tests/test_eventsoff.mojo @@ -24,7 +24,7 @@ from morca.tables import Table from parquet import ParquetReader from parquet_full import AllCodecs -from datafiles import DataFiles, TableWriter +from datafiles import TableWriter from events import ROWS_PER_BATCH, decode_hour, keep_events from gzstream import Whole from lake import ( diff --git a/tests/test_history.mojo b/tests/test_history.mojo index d661931..ded9f75 100644 --- a/tests/test_history.mojo +++ b/tests/test_history.mojo @@ -15,7 +15,7 @@ def _sh(cmd: String, timeout_ms: Int = 0) raises -> Tuple[Int, String]: """`cmd` run with `sh` (the tests set repositories up with it; the census itself runs git without a shell).""" return command(["/bin/sh", "-c", cmd], timeout_ms) -from history import CommitRow, MigrationRow, TagRow, join_tags, parse_tags +from history import join_tags, parse_tags def _log() -> String: diff --git a/tests/test_hourindex.mojo b/tests/test_hourindex.mojo index be57461..7268290 100644 --- a/tests/test_hourindex.mojo +++ b/tests/test_hourindex.mojo @@ -19,7 +19,7 @@ from detect import Candidate, scan_event from events import EventParser from hourindex import HourIndex, candidates_from, write_marker from lake import CANDIDATES_SCHEMA, GH_RELEASES_SCHEMA, REPO_HOUR_SCHEMA -from jscan import Range, field, scan_event as scan_line, text, timestamp_micros +from jscan import Range, scan_event as scan_line, text, timestamp_micros def _line( diff --git a/tests/test_model.mojo b/tests/test_model.mojo index a7925ea..6c5a614 100644 --- a/tests/test_model.mojo +++ b/tests/test_model.mojo @@ -12,7 +12,7 @@ from std.time import perf_counter_ns from iceberg.batch import ColumnBuilder, NestedBuilder, batch_of, batch_of_columns from iceberg.nested import ColumnTree -from iceberg.catalog.filesystem import FilesystemCatalog, Table +from iceberg.catalog.filesystem import FilesystemCatalog from iceberg.schema import Schema from morca.tables import Table as LakeTable from iceberg.json import json_quote diff --git a/tests/test_overview.mojo b/tests/test_overview.mojo index 8870fbe..5ebb224 100644 --- a/tests/test_overview.mojo +++ b/tests/test_overview.mojo @@ -12,7 +12,6 @@ from listing import ( NEW_30D, NEW_LAST_MONTH, NEW_MONTH, - ListQuery, list_url, parse_list_query, select_repos, diff --git a/tests/test_republish.mojo b/tests/test_republish.mojo index 9c29fe9..65982d7 100644 --- a/tests/test_republish.mojo +++ b/tests/test_republish.mojo @@ -9,7 +9,7 @@ fork of it (`deps.republishes`). from std.testing import TestSuite, assert_equal, assert_false, assert_true -from deps import DEPENDS, Dep, ForkOf, PROVIDES, RepoDep, manifest_deps, republishes, resolve +from deps import Dep, ForkOf, PROVIDES, RepoDep, manifest_deps, republishes, resolve from detect import Candidate, parse_search, scan_event, search_queries from jscan import Range, scan_event as scan_line, text, timestamp_micros diff --git a/tools/compare_activity.mojo b/tools/compare_activity.mojo index 467fc7a..a1f1cc1 100644 --- a/tools/compare_activity.mojo +++ b/tools/compare_activity.mojo @@ -14,7 +14,7 @@ from std.time import perf_counter_ns from activity import Acc, ReleaseRow, add_event, day_activity, encode_job, finish from cols import str_at, str_range from days import day_text, days_of -from lake import EVENTS, GH_RELEASES, REPO_HOUR, load +from lake import load def main() raises: