fix spelling mistakes

This commit is contained in:
Sean Breckenridge 2020-09-06 01:11:47 -07:00 committed by karlicoss
parent 07dd61ca6a
commit 78489157a1
9 changed files with 10 additions and 10 deletions

View file

@ -69,7 +69,7 @@ This library is my attempt to achieve this vision.
- Accessing exercise data - Accessing exercise data
- Book reading progress - Book reading progress
- Messenger stats - Messenger stats
- Querying Roam Reasearch database - Querying Roam Research database
- How does it get input data? - How does it get input data?
- Q & A - Q & A
- Why Python? - Why Python?
@ -445,7 +445,7 @@ How much do I chat on Facebook Messenger?
[[https://beepb00p.xyz/messenger_2016_to_2019.png]] [[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]]. I've got some code examples [[https://beepb00p.xyz/myinfra-roam.html#interactive][here]].
* How does it get input data? * How does it get input data?

View file

@ -15,7 +15,7 @@ import functools
@functools.lru_cache() @functools.lru_cache()
def mypy_cmd() -> Optional[Sequence[str]]: def mypy_cmd() -> Optional[Sequence[str]]:
try: try:
# preferrably, use mypy from current python env # preferably, use mypy from current python env
import mypy import mypy
return ['python3', '-m', 'mypy'] return ['python3', '-m', 'mypy']
except ImportError: except ImportError:

View file

@ -123,7 +123,7 @@ def _is_compressed(p: Path) -> bool:
return p.suffix in {'.xz', '.lz4', '.zstd'} return p.suffix in {'.xz', '.lz4', '.zstd'}
# TODO support '' for emtpy path # TODO support '' for empty path
DEFAULT_GLOB = '*' DEFAULT_GLOB = '*'
def get_files( def get_files(
pp: Paths, pp: Paths,

View file

@ -89,7 +89,7 @@ def stats():
# TODO hmm. need some sort of abstract syntax for this... # TODO hmm. need some sort of abstract syntax for this...
# TODO split further, title too # TODO split further, title too
def _get_summary(e) -> Tuple[str, Optional[str], Optional[str]]: 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'] eid = e['id']
tp = e['type'] tp = e['type']
pl = e['payload'] pl = e['payload']

View file

@ -40,7 +40,7 @@ def inputs() -> Sequence[Path]:
class Scrobble(NamedTuple): class Scrobble(NamedTuple):
raw: Json raw: Json
# TODO mm, no timezone? hopefuly it's UTC # TODO mm, no timezone? hopefully it's UTC
@property @property
def dt(self) -> datetime: def dt(self) -> datetime:
ts = int(self.raw['date']) ts = int(self.raw['date'])

View file

@ -7,6 +7,6 @@ show_error_codes = True
check_untyped_defs = True check_untyped_defs = True
namespace_packages = 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] [mypy-my.config.repos.pdfannots.pdfannots]
ignore_errors = True ignore_errors = True

View file

@ -86,7 +86,7 @@ def notes(tmp_path: Path):
* Weight (org-capture) :weight: * Weight (org-capture) :weight:
** [2020-05-01 Fri 09:00] 62 ** [2020-05-01 Fri 09:00] 62
** 63 ** 63
this should be ignored, got no timestmap this should be ignored, got no timestamp
** [2020-05-03 Sun 08:00] 61 ** [2020-05-03 Sun 08:00] 61
** [2020-05-04 Mon 10:00] 62 ** [2020-05-04 Mon 10:00] 62
''') ''')

View file

@ -89,7 +89,7 @@ def test_attribute_handling(tmp_path: Path) -> None:
# mypy doesn't know about it, but the attribute is there # mypy doesn't know about it, but the attribute is there
assert getattr(config, 'irrelevant') == 'hello' 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 assert config.timezone == nytz

View file

@ -23,7 +23,7 @@ def test_location_perf():
# in theory should support any HTML takeout file? # 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 import pytest # type: ignore
@pytest.mark.parametrize( @pytest.mark.parametrize(
'path', [ 'path', [