Skip to content

Commit

Permalink
Merge pull request #145 from FoamyGuy/8mpy_platform
Browse files Browse the repository at this point in the history
add platform entry for 8mpy
  • Loading branch information
dhalbert authored Jun 8, 2022
2 parents 86ff01c + 4eea336 commit 2c23dd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ repos:
types: [python]
exclude: "^(docs/|examples/|setup.py$)"
- repo: https://github.com/python/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/fsfe/reuse-tool
rev: v0.12.1
rev: v0.14.0
hooks:
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.2.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion circup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#: The version of CircuitPython found on the connected device.
CPY_VERSION = ""
#: Module formats list (and the other form used in github files)
PLATFORMS = {"py": "py", "7mpy": "7.x-mpy"}
PLATFORMS = {"py": "py", "7mpy": "7.x-mpy", "8mpy": "7.x-mpy"}
#: Commands that do not require an attached board
BOARDLESS_COMMANDS = ["show", "bundle-add", "bundle-remove", "bundle-show"]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_circup.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def test_get_bundle():
bundle = circup.Bundle(TEST_BUNDLE_NAME)
circup.get_bundle(bundle, tag)
# how many bundles currently supported. i.e. 6x.mpy, 7x.mpy, py = 3 bundles
_bundle_count = 2
_bundle_count = len(circup.PLATFORMS)
assert mock_requests.get.call_count == _bundle_count
assert mock_open.call_count == _bundle_count
assert mock_shutil.rmtree.call_count == _bundle_count
Expand Down

0 comments on commit 2c23dd4

Please sign in to comment.