Skip to content

Commit

Permalink
Make some minor changes to files in order for the tests to work on gi…
Browse files Browse the repository at this point in the history
…thub.
  • Loading branch information
johndoknjas committed Apr 23, 2024
1 parent 2c46971 commit 08d1eb4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hypickle/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion hypickle/Graphing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hypickle/hypixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions ideas.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 08d1eb4

Please sign in to comment.