diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b0257eb..716f074 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - name: Python application on: diff --git a/hypickle/Files.py b/hypickle/Files.py index 7bfbbb3..43d06cb 100644 --- a/hypickle/Files.py +++ b/hypickle/Files.py @@ -76,7 +76,7 @@ def ign_uuid_pairs_in_hypickle_cache() -> dict[str, str]: return _ign_uuid_pairs_hypickle_cache def update_hypickle_cache(ign: str, uuid: str): - ign_uuid_pairs_in_hypickle_cache()[ign := ign.lower()] = uuid + ign_uuid_pairs_in_hypickle_cache()[(ign := ign.lower())] = uuid write_to_file(f"{ign} {uuid}", "ign_uuid_pair", HYPICKLE_CACHE_FOLDER) def read_json_textfile(filepath: str) -> dict: diff --git a/hypickle/Graphing.py b/hypickle/Graphing.py index 2ce45dd..62aad4c 100644 --- a/hypickle/Graphing.py +++ b/hypickle/Graphing.py @@ -28,7 +28,7 @@ def fit_to_polynomial(self, degree: int) -> str: return poly_string def output_scatterplots(info_for_figs: Iterable[ScatterplotInfo]) -> None: - import matplotlib.pyplot as plt + import matplotlib.pyplot as plt # type: ignore import mplcursors # type: ignore for i, fig_info in enumerate(info_for_figs): f = plt.figure(i+1) diff --git a/hypickle/hypixel.py b/hypickle/hypixel.py index ce64eb1..62ce866 100644 --- a/hypickle/hypixel.py +++ b/hypickle/hypixel.py @@ -8,7 +8,7 @@ from typing import Optional import re import os.path -import requests +import requests # type: ignore from .MyClasses import UUID_Plus_Time, args from . import Files diff --git a/ideas.txt b/ideas.txt index 340544a..78a03a8 100644 --- a/ideas.txt +++ b/ideas.txt @@ -40,9 +40,6 @@ comes before the future annotations statement, but no more than one. See https://stackoverflow.com/questions/38688504/from-future-imports-must-occur-at-the-beginning-of-the-file-what-defines - # Make `tests.py` run whenever pushing to master on github. And try to run it on windows and linux - via github actions? - # Consider sleeping in the while loop for perpetual passes, to ensure only one per min (at most) is done. # The point of this would be to avoid doing repetitive output so often.