Skip to content

Commit abcb813

Browse files
authored
tooling: Consolidate configuration in pyproject.toml. (#227)
* tooling: Consolidate configuration in pyproject.toml. * style: Apply isort import ordering across all files. * tooling: Address PR review comments on pyproject.toml.
1 parent 8d8d341 commit abcb813

69 files changed

Lines changed: 158 additions & 169 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/apds9960/apds9960/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
from time import sleep_ms
2+
13
from apds9960.const import *
24
from apds9960.exceptions import *
35

4-
from time import sleep_ms
5-
66

77
class APDS9960(object):
88
class GestureData:

lib/apds9960/examples/ambient_light.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from time import sleep
22

3-
from machine import I2C
4-
53
from apds9960 import uAPDS9960 as APDS9960
4+
from machine import I2C
65

76
i2c = I2C(1)
87

lib/apds9960/examples/gesture.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
from time import sleep
22

3-
from machine import I2C
4-
3+
from apds9960 import uAPDS9960 as APDS9960
54
from apds9960.const import (
6-
APDS9960_DIR_NONE,
5+
APDS9960_DIR_DOWN,
6+
APDS9960_DIR_FAR,
77
APDS9960_DIR_LEFT,
8+
APDS9960_DIR_NEAR,
9+
APDS9960_DIR_NONE,
810
APDS9960_DIR_RIGHT,
911
APDS9960_DIR_UP,
10-
APDS9960_DIR_DOWN,
11-
APDS9960_DIR_NEAR,
12-
APDS9960_DIR_FAR,
1312
)
14-
from apds9960 import uAPDS9960 as APDS9960
13+
from machine import I2C
1514

1615
i2c = I2C(1)
1716

lib/apds9960/examples/proximity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from time import sleep
22

3-
from machine import I2C
4-
53
from apds9960 import uAPDS9960 as APDS9960
4+
from machine import I2C
65

76
i2c = I2C(1)
87

lib/bq27441/bq27441/device.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from bq27441.const import *
2-
from bq27441.exceptions import *
3-
1+
import struct
42
from time import sleep_ms, ticks_ms
3+
54
from machine import Pin
65

7-
import struct
6+
from bq27441.const import *
7+
from bq27441.exceptions import *
88

99

1010
# Parameters for the current() function, to specify which current to read

lib/bq27441/examples/fuel_gauge.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from time import sleep
22

3-
from machine import I2C
4-
53
from bq27441 import BQ27441
4+
from machine import I2C
65

76
i2c = I2C(1)
87

lib/daplink_flash/examples/config_zone.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
- CLEAR_CONFIG (0x32): erase the entire 1 KB zone
1212
"""
1313

14-
from machine import I2C
1514
from time import sleep_ms
1615

16+
from machine import I2C
17+
1718
i2c = I2C(1)
1819
addr = 0x3B
1920
passed = 0

lib/daplink_flash/examples/erase_flash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Erase all data from the flash memory."""
22

3-
from machine import I2C
43
from time import sleep_ms
4+
55
from daplink_flash import DaplinkFlash
6+
from machine import I2C
67

78
i2c = I2C(1)
89
flash = DaplinkFlash(i2c)

lib/daplink_flash/examples/flash_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Display DAPLink Flash bridge status and filename."""
22

3-
from machine import I2C
43
from daplink_flash import DaplinkFlash
4+
from machine import I2C
55

66
i2c = I2C(1)
77
flash = DaplinkFlash(i2c)

lib/daplink_flash/examples/read_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Read and display the current file stored on flash."""
22

3-
from machine import I2C
43
from daplink_flash import DaplinkFlash
4+
from machine import I2C
55

66
i2c = I2C(1)
77
flash = DaplinkFlash(i2c)

0 commit comments

Comments
 (0)