This repository was archived by the owner on Nov 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44repos :
55
66- repo : https://github.com/pre-commit/pre-commit-hooks
7- rev : v4.3 .0
7+ rev : v4.4 .0
88 hooks :
99 - id : check-yaml
1010 - id : check-toml
@@ -19,27 +19,27 @@ repos:
1919
2020# Updating code to use modern python patterns where available.
2121- repo : https://github.com/asottile/pyupgrade
22- rev : v3.1.0
22+ rev : v3.3.1
2323 hooks :
2424 - id : pyupgrade
2525
2626# General Project code formatter.
2727- repo : https://github.com/psf/black
28- rev : 22.10 .0
28+ rev : 22.12 .0
2929 hooks :
3030 - id : black
3131
3232# Sorts python imports.
3333- repo : https://github.com/PyCQA/isort
3434 # Note - on black update blacken-docs pin should also be updated.
35- rev : 5.10.1
35+ rev : 5.11.4
3636 hooks :
3737 - id : isort
3838 args : ['--profile=black']
3939
4040# Formats python docstrings.
4141- repo : https://github.com/PyCQA/docformatter
42- rev : v1.5.0
42+ rev : v1.5.1
4343 hooks :
4444 - id : docformatter
4545
7676
7777# Lint code in pre-commit env, note: This ignores import checks.
7878- repo : https://github.com/PyCQA/pylint
79- rev : v2.15.5
79+ rev : v2.15.9
8080 hooks :
8181 # Pylint is also run from within pre-commit for CI purposes.
8282 - id : pylint
@@ -102,7 +102,7 @@ repos:
102102
103103# lint documentation
104104- repo : https://github.com/PyCQA/doc8
105- rev : v1.0.0
105+ rev : v1.1.1
106106 hooks :
107107 - id : doc8
108108
@@ -118,6 +118,6 @@ repos:
118118
119119# Static typehint linting.
120120- repo : https://github.com/pre-commit/mirrors-mypy
121- rev : v0.982
121+ rev : v0.991
122122 hooks :
123123 - id : mypy
Original file line number Diff line number Diff line change 1+ Version 0.5.0
2+ -------------
3+
4+ :Date: 31-December-2022
5+
6+ * BREAKING! Remaps address for redesign of UOS protocol.
7+ * PEP 484 implicit optional typing fixes.
8+
19Version 0.4.0
210-------------
311
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Persistence(Enum):
1616 """Volatility levels that can be used in UOS instructions."""
1717
1818 NONE = 0
19- RAM = 1 # dead: disable
19+ RAM = 1
2020 EEPROM = 2 # dead: disable
2121
2222
Original file line number Diff line number Diff line change @@ -23,13 +23,19 @@ class UOSFunctions:
2323
2424 set_gpio_output = UOSFunction (
2525 name = "set_gpio_output" ,
26- address_lut = {Persistence .NONE : 64 },
26+ address_lut = {
27+ Persistence .NONE : 60 ,
28+ Persistence .RAM : 70 ,
29+ },
2730 ack = True ,
2831 pin_requirements = ["gpio_out" ],
2932 )
3033 get_gpio_input = UOSFunction (
3134 name = "get_gpio_input" ,
32- address_lut = {Persistence .NONE : 64 },
35+ address_lut = {
36+ Persistence .NONE : 61 ,
37+ Persistence .RAM : 71 ,
38+ },
3339 ack = True ,
3440 rx_packets_expected = [1 ],
3541 pin_requirements = ["gpio_in" ],
@@ -42,7 +48,7 @@ class UOSFunctions:
4248 pin_requirements = ["adc_in" ],
4349 )
4450 reset_all_io = UOSFunction (
45- name = "reset_all_io" , address_lut = {Persistence .NONE : 68 }, ack = True
51+ name = "reset_all_io" , address_lut = {Persistence .NONE : 245 }, ack = True
4652 )
4753 hard_reset = UOSFunction (
4854 name = "hard_reset" , address_lut = {Persistence .NONE : - 1 }, ack = False
Original file line number Diff line number Diff line change 1818
1919# This is an interface for client implementations dead code false positive.
2020def enumerate_system_devices ( # dead: disable
21- interface_filter : Interface = None ,
21+ interface_filter : Interface | None = None ,
2222) -> list :
2323 """Iterate through all interfaces and locates available devices.
2424
You can’t perform that action at this time.
0 commit comments