From 78489157a13a573a8cf22bfe9439b7d659913d33 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Sun, 6 Sep 2020 01:11:47 -0700 Subject: [PATCH] fix spelling mistakes --- README.org | 4 ++-- my/core/__main__.py | 2 +- my/core/common.py | 2 +- my/github/ghexport.py | 2 +- my/lastfm/__init__.py | 2 +- mypy.ini | 2 +- tests/config.py | 2 +- tests/demo.py | 2 +- tests/takeout.py | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index d0cb08c..b82261b 100644 --- a/README.org +++ b/README.org @@ -69,7 +69,7 @@ This library is my attempt to achieve this vision. - Accessing exercise data - Book reading progress - Messenger stats - - Querying Roam Reasearch database + - Querying Roam Research database - How does it get input data? - Q & A - Why Python? @@ -445,7 +445,7 @@ How much do I chat on Facebook Messenger? [[https://beepb00p.xyz/messenger_2016_to_2019.png]] -** Querying Roam Reasearch database +** Querying Roam Research database I've got some code examples [[https://beepb00p.xyz/myinfra-roam.html#interactive][here]]. * How does it get input data? diff --git a/my/core/__main__.py b/my/core/__main__.py index 09a4c45..a209e72 100644 --- a/my/core/__main__.py +++ b/my/core/__main__.py @@ -15,7 +15,7 @@ import functools @functools.lru_cache() def mypy_cmd() -> Optional[Sequence[str]]: try: - # preferrably, use mypy from current python env + # preferably, use mypy from current python env import mypy return ['python3', '-m', 'mypy'] except ImportError: diff --git a/my/core/common.py b/my/core/common.py index 4c6a5a2..0550d9f 100644 --- a/my/core/common.py +++ b/my/core/common.py @@ -123,7 +123,7 @@ def _is_compressed(p: Path) -> bool: return p.suffix in {'.xz', '.lz4', '.zstd'} -# TODO support '' for emtpy path +# TODO support '' for empty path DEFAULT_GLOB = '*' def get_files( pp: Paths, diff --git a/my/github/ghexport.py b/my/github/ghexport.py index dd164be..5f54d03 100644 --- a/my/github/ghexport.py +++ b/my/github/ghexport.py @@ -89,7 +89,7 @@ def stats(): # TODO hmm. need some sort of abstract syntax for this... # TODO split further, title too def _get_summary(e) -> Tuple[str, Optional[str], Optional[str]]: - # TODO would be nice to give access to raw event withing timeline + # TODO would be nice to give access to raw event within timeline eid = e['id'] tp = e['type'] pl = e['payload'] diff --git a/my/lastfm/__init__.py b/my/lastfm/__init__.py index a208e50..0a19152 100755 --- a/my/lastfm/__init__.py +++ b/my/lastfm/__init__.py @@ -40,7 +40,7 @@ def inputs() -> Sequence[Path]: class Scrobble(NamedTuple): raw: Json - # TODO mm, no timezone? hopefuly it's UTC + # TODO mm, no timezone? hopefully it's UTC @property def dt(self) -> datetime: ts = int(self.raw['date']) diff --git a/mypy.ini b/mypy.ini index 15f1976..c1ab5d6 100644 --- a/mypy.ini +++ b/mypy.ini @@ -7,6 +7,6 @@ show_error_codes = True check_untyped_defs = True namespace_packages = True -# it's not controled by me, so for now just ignore.. +# it's not controlled by me, so for now just ignore.. [mypy-my.config.repos.pdfannots.pdfannots] ignore_errors = True diff --git a/tests/config.py b/tests/config.py index 65f6c36..5078ce0 100644 --- a/tests/config.py +++ b/tests/config.py @@ -86,7 +86,7 @@ def notes(tmp_path: Path): * Weight (org-capture) :weight: ** [2020-05-01 Fri 09:00] 62 ** 63 - this should be ignored, got no timestmap + this should be ignored, got no timestamp ** [2020-05-03 Sun 08:00] 61 ** [2020-05-04 Mon 10:00] 62 ''') diff --git a/tests/demo.py b/tests/demo.py index 9da5966..436bc63 100644 --- a/tests/demo.py +++ b/tests/demo.py @@ -89,7 +89,7 @@ def test_attribute_handling(tmp_path: Path) -> None: # mypy doesn't know about it, but the attribute is there assert getattr(config, 'irrelevant') == 'hello' - # check that overriden default attribute is actually getting overridden + # check that overridden default attribute is actually getting overridden assert config.timezone == nytz diff --git a/tests/takeout.py b/tests/takeout.py index 8272849..101a037 100644 --- a/tests/takeout.py +++ b/tests/takeout.py @@ -23,7 +23,7 @@ def test_location_perf(): # in theory should support any HTML takeout file? -# although IIRC bookmakrs and search-history.html weren't working +# although IIRC bookmarks and search-history.html weren't working import pytest # type: ignore @pytest.mark.parametrize( 'path', [