Skip to content

Commit 9ce1c68

Browse files
authored
No more upy (#41)
* no more f-strings * remove upy wrappers * pre-allocate SPI buffers in rf24.py; fix spelling * update setup.py for macos installs * only require spidev for Linux arm* devices * update network example * Update topology.rst * add as_bin param to save/load_dhcp() * update docs for theme changes * complete type hinting * ble example flush RX FIFO on exit slave()
1 parent c800869 commit 9ce1c68

41 files changed

Lines changed: 666 additions & 624 deletions

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
tr '-' '_'
3333
)
3434
35-
- name: Set up Python 3.7
35+
- name: Set up Python
3636
uses: actions/setup-python@v1
3737
with:
38-
python-version: 3.7
38+
python-version: 3.9
3939

4040
- name: Versions
4141
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
awk -F '\/' '{ print tolower($2) }' |
2929
tr '-' '_'
3030
)
31-
- name: Set up Python 3.7
31+
- name: Set up Python
3232
uses: actions/setup-python@v1
3333
with:
34-
python-version: 3.7
34+
python-version: 3.9
3535
- name: Versions
3636
run: |
3737
python3 --version
@@ -50,12 +50,9 @@ jobs:
5050
- name: Build assets
5151
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . --package_folder_prefix ${{ steps.pkg-name.outputs.pkg-name }}
5252
- name: Upload Release Assets
53-
# the 'official' actions version does not yet support dynamically
54-
# supplying asset names to upload. @csexton's version chosen based on
55-
# discussion in the issue below, as its the simplest to implement and
56-
# allows for selecting files with a pattern.
57-
# https://github.com/actions/upload-release-asset/issues/4
58-
#uses: actions/upload-release-asset@v1.0.1
53+
# the 'official' actions version changes the release titlle upon upload.
54+
# @csexton's version is chosen based on because it doesn't
55+
#uses: actions/upload-release-asset@v2
5956
uses: csexton/release-asset-action@master
6057
with:
6158
pattern: "bundles/*"

.pylintrc

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ confidence=
5151
# --enable=similarities". If you want to run only the classes checker, but have
5252
# no Warning level messages displayed, use"--disable=all --enable=classes
5353
# --disable=W"
54-
disable=print-statement,
55-
duplicate-code,
54+
disable=duplicate-code,
5655
import-error,
57-
bad-whitespace,
58-
bad-continuation,
5956
consider-using-f-string,
6057
too-few-public-methods,
6158
too-many-instance-attributes,
@@ -230,12 +227,6 @@ max-line-length=88
230227
# Maximum number of lines in a module
231228
max-module-lines=1000
232229

233-
# List of optional constructs for which whitespace checking is disabled. `dict-
234-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
235-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
236-
# `empty-line` allows space-only lines.
237-
no-space-check=trailing-comma,dict-separator
238-
239230
# Allow the body of a class to be on the same line as the declaration if body
240231
# contains single statement.
241232
single-line-class-stmt=no
@@ -262,48 +253,29 @@ min-similarity-lines=4
262253

263254
[BASIC]
264255

265-
# Naming hint for argument names
266-
argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
267-
268256
# Regular expression matching correct argument names
269257
argument-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
270258

271-
# Naming hint for attribute names
272-
attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
273-
274259
# Regular expression matching correct attribute names
275260
attr-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
276261

277262
# Bad variable names which should always be refused, separated by a comma
278263
bad-names=foo,bar,baz,toto,tutu,tata
279264

280-
# Naming hint for class attribute names
281-
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
282-
283265
# Regular expression matching correct class attribute names
284266
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
285267

286-
# Naming hint for class names
287-
# class-name-hint=[A-Z_][a-zA-Z0-9]+$
288-
class-name-hint=[A-Z_][a-zA-Z0-9_]+$
289-
290268
# Regular expression matching correct class names
291269
# class-rgx=[A-Z_][a-zA-Z0-9]+$
292270
class-rgx=[A-Z_][a-zA-Z0-9_]+$
293271

294-
# Naming hint for constant names
295-
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
296-
297272
# Regular expression matching correct constant names
298273
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
299274

300275
# Minimum line length for functions/classes that require docstrings, shorter
301276
# ones are exempt.
302277
docstring-min-length=-1
303278

304-
# Naming hint for function names
305-
function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
306-
307279
# Regular expression matching correct function names
308280
function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
309281

@@ -314,21 +286,12 @@ good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_
314286
# Include a hint for the correct naming format with invalid-name
315287
include-naming-hint=no
316288

317-
# Naming hint for inline iteration names
318-
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
319-
320289
# Regular expression matching correct inline iteration names
321290
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
322291

323-
# Naming hint for method names
324-
method-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
325-
326292
# Regular expression matching correct method names
327293
method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
328294

329-
# Naming hint for module names
330-
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
331-
332295
# Regular expression matching correct module names
333296
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
334297

@@ -344,9 +307,6 @@ no-docstring-rgx=^_
344307
# to this list to register other decorators that produce valid properties.
345308
property-classes=abc.abstractproperty
346309

347-
# Naming hint for variable names
348-
variable-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
349-
350310
# Regular expression matching correct variable names
351311
variable-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
352312

circuitpython_nrf24l01/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""circuitpython-nrf24l01 package version and repository information. This is meant to
2+
be used with adafruit/circup package manager to manage packages on Circuitpython devices
3+
like pip does for CPython devices."""
4+
__version__ = "0.0.0-auto.0"
5+
__repo__ = "https://github.com/nRF24/CircuitPython_nRF24L01.git"

0 commit comments

Comments
 (0)