Skip to content

Commit

Permalink
docs: Fix typos
Browse files Browse the repository at this point in the history
Found via `codespell -S poetry.lock -L ure`
  • Loading branch information
kianmeng authored and BradenM committed Sep 5, 2023
1 parent 7f9295d commit 8b41206
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
- **pkg:** upgrade too and pin jinja2 @ 3.0.3
- **project:** report exception on install failure to stdout
- **stubber:** replace pyminifer with python-minifer
- **utils:** capture attribue err that occurs on py310 win32 rshell import
- **utils:** capture attribute err that occurs on py310 win32 rshell import
- **utils:** utilize mp-stubbers new logic for generating stubs

### Features
Expand Down Expand Up @@ -820,7 +820,7 @@ No longer compatible with <=ms-python.python[@2019](https://github.com/2019).8.3

### Bug Fixes

- Fails First Time Setup Failed to init on first run if the stubs folder didnt exist
- Fails First Time Setup Failed to init on first run if the stubs folder didn't exist
- Removed old command
- Fix Project Init
- Added rshell to setup.py
Expand Down
2 changes: 1 addition & 1 deletion micropy/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def parse_key(self, key: str) -> Tuple[Sequence[str], str]:
"""Parses key.
Splits it into a path and 'final key'
object. Each key is seperates by a: "/"
object. Each key is separates by a: "/"
Example:
>>> self.parse_key('item/subitem/value')
Expand Down
2 changes: 1 addition & 1 deletion micropy/project/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Template:
template (jinja2.Template): Jinja2 Template Instance
Raises:
NotImplementedError: Method must be overriden by subclass
NotImplementedError: Method must be overridden by subclass
"""

Expand Down
2 changes: 1 addition & 1 deletion micropy/pyd/backend_rshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def copy_dir(
Args:
source_path: path to directory
target_path: destination to copy to
rsync (dict, optional): additonal args to pass to rsync call.
rsync (dict, optional): additional args to pass to rsync call.
Defaults to {}
"""
Expand Down
2 changes: 1 addition & 1 deletion micropy/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def ensure_valid_url(url):
Raises:
InvalidURL: URL is not a valid url
ConnectionError: Failed to connect to url
HTTPError: Reponse was not 200 <OK>
HTTPError: Response was not 200 <OK>
Returns:
str: valid url
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_load_from_file(self, tmp_path, utils):
cfg_file.write_text(json.dumps(self.default))
conf = config.Config(cfg_file, default={})
assert conf.config == self.default
# default should be overriden
# default should be overridden
conf = config.Config(cfg_file, default={"one": 1})
assert utils.dict_equal(conf.raw(), self.default)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_setup(mock_micropy_path):
mp = main.MicroPy(options=config)
assert expect_mp_dir.exists()
assert expect_stubs_dir.exists()
# Test after inital setup
# Test after initial setup
mp_ = main.MicroPy(options=config)
assert len(mp_.stubs) == len(mp.stubs)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_project_queue(tmp_path, mock_cwd, mocker):
# should be called in order of priority (9 being highest)
mock_parent.assert_has_calls(
[
# adding them doesnt matter
# adding them doesn't matter
mocker.call.m1(log=mocker.ANY, parent=mocker.ANY),
mocker.call.m2(log=mocker.ANY, parent=mocker.ANY),
mocker.call.m3(log=mocker.ANY, parent=mocker.ANY),
Expand Down Expand Up @@ -248,7 +248,7 @@ def test_add_package(self, test_project, mock_pkg, tmp_path):
proj, mp = next(test_project("reqs"))
proj.create()
proj.add_package("somepkg==7")
# Shouldnt allow duplicate pkgs
# Shouldn't allow duplicate pkgs
res = proj.add_package("somepkg")
assert res is None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_loads_from_resource(datadir, mock_fware):


def test_name_property(shared_datadir):
"""should raise error if name is not overriden"""
"""should raise error if name is not overridden"""
test_stub = shared_datadir / "esp8266_test_stub"

class ErrorStub(stubs.stubs.Stub):
Expand Down

0 comments on commit 8b41206

Please sign in to comment.