Commit graph

338 commits

Author SHA1 Message Date
790c294b73 attempt to address wrong-import-order diagnostics 2020-08-24 16:11:10 -05:00
0340400639 attempt to address wrong-import-order diagnostiss 2020-08-24 16:04:52 -05:00
55a30befd5 Merge remote-tracking branch 'origin/master' into remove-bad-whitespace-directive 2020-08-24 16:03:15 -05:00
563444682f use raise-from 2020-08-24 15:54:09 -05:00
991e5d21f2 remove bad-whitespace pylint directive 2020-08-23 11:01:51 -05:00
dherrada
01f3f6674b Fixed discord invite link 2020-07-08 16:49:04 -04:00
Scott Shawcroft
4f2f8c9f99
Merge pull request #88 from adafruit/tannewt-patch-2
Use secrets.py for ssid and password.
2020-07-06 15:16:19 -07:00
Scott Shawcroft
15f2a45a5d
Use secrets import from other examples 2020-07-06 15:12:19 -07:00
Scott Shawcroft
93b17712e7
lint 2020-07-03 13:43:18 -07:00
Scott Shawcroft
dbe91f0f7f
Merge branch 'master' into tannewt-patch-2 2020-07-02 15:45:08 -07:00
Scott Shawcroft
522df976fd
Merge pull request #99 from Flameeyes/master
Apply REUSE recommendations for code, documentation, and examples licensing.
2020-06-01 14:55:35 -07:00
Diego Elio Pettenò
f70ac1ad67 Add a pre-commit hook configuration to check YAML and whitespace.
These are minor, but avoids those coming up during reviews at all.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>
2020-05-30 10:36:49 +01:00
Diego Elio Pettenò
2077d83a49 Move black testing definition as part of pre-commit.
For this to work, the black command line options need to be replaced with a
pyproject.toml file defining the settings, that can be reused.
2020-05-30 10:36:49 +01:00
Diego Elio Pettenò
5daca027ed Add pre-commit configuration and integration for REUSE.software.
pre-commit.com provides a way to configure pre-commit hooks for multiple
tools, including `reuse lint` (configured here), isort, black, and more.

This is also integrated with GitHub actions in the example configuration.
2020-05-30 10:36:49 +01:00
Diego Elio Pettenò
dd7b4fffc4 Apply SPDX copyright and license headers in compliance with REUSE.
The REUSE specifications[1] are meant to make it explicit and easier to
apply code licensing information for a project. The provided lint tool
makes it easy to ensure all the content (code and not code) is tagged.

Important notes:

 * All the code (and documentation) that otherwise didn't have an explicit
   license headers have been tagged with ladyada's copyright as per the
   LICENSE file.
 * favicon.ico and CODE_OF_CONDUCT.md have been synced from the
   source-of-truth repositories.
 * All configuration files have been tagged with ladyada's copyright and
   Unlicense[2]. The current REUSE recommendation is to use CC0-1.0, but
   that has… side effects. There's some discussion in [3] about the
   recommendation for likely-uncopyrightable files (such as configuration
   files).

[1]: https://reuse.software/
[2]: https://unlicense.org/
[3]: https://github.com/fsfe/reuse-docs/issues/62
2020-05-30 10:36:49 +01:00
Diego Elio Pettenò
d15014f9aa Sync Code of Conduct from source-of-truth repository. 2020-05-30 10:36:44 +01:00
Brent Rubell
94b03517c1
Merge pull request #97 from dearmash/master
Add UDP support
2020-05-07 09:25:50 -04:00
Brent Rubell
96887eeb60
Merge pull request #98 from brentru/update-simpletest
Update Simpletest
2020-05-05 10:59:56 -04:00
brentru
b9154b55d6 add airlift shield, reflect featherwing 2020-05-05 10:29:44 -04:00
Harold De Armas
974820a293 Clarify log statemeny 2020-04-30 14:04:59 -07:00
Harold De Armas
2c0466f786 fix indentation for easier merge 2020-04-30 00:17:50 -07:00
Harold De Armas
82edb0ab39 pylint 2020-04-30 00:15:36 -07:00
Harold De Armas
aa96dd1448 pylint 2020-04-30 00:13:04 -07:00
Harold De Armas
f437871fa3 Formatting 2020-04-30 00:02:47 -07:00
Harold De Armas
138bccbe9e Add UDP support
Writing to UDP requires separate APIs to use to append data and finalize.

TCP sends and confirms per-write and finalize is a no-op.  UDP appends to a buffer and finalize sends all at once.

The simple socket_open method doesn't actually create a socket per https://github.com/arduino/nina-fw.

Since socket_connect is a convenience method anyway, and connect doesn't really make sense for UDP, add the start_server call for UDP to that method to have a socket to write as well as read on.

e.x. usage

esp.socket_connect(socket_num, dest, port, esp.UDP_MODE)
esp.socket_write(socket_num, buffer, esp.UDP_MODE)
avail = esp.socket_available(socket_num)
recv = esp.socket_read(socket_num, avail)
esp.socket_close(socket_num)
2020-04-29 23:54:40 -07:00
Brent Rubell
3cf7b8a2a8
Merge pull request #89 from anecdata/gpio
Example using ESP32 GPIO pins from CircuitPython
2020-04-21 14:08:24 -04:00
anecdata
5e5a5a526c removed unnecessary code 2020-04-21 11:31:05 -05:00
anecdata
4d5f884f52 fix pylint 2020-04-21 10:37:13 -05:00
anecdata
bfdac54d8a fix pylint 2020-04-21 10:23:26 -05:00
anecdata
8a9ed1ae9e locally black'd output file 2020-04-21 10:13:20 -05:00
anecdata
bbbd5f79d2 Fix black error(s) 2020-04-21 09:51:52 -05:00
anecdata
64528f50a9 Minor comment edits 2020-04-20 23:13:52 -05:00
Scott Shawcroft
4c327a39a3
Merge pull request #96 from adafruit/black-update
Black reformatting with Python 3 target.
2020-04-09 09:38:14 -07:00
Kattni Rembor
8bb6884fb3 Black reformatting with Python 3 target. 2020-04-08 15:07:27 -04:00
sommersoft
37e3ca2ae0 build.yml: add black formatting check
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-04-07 16:09:52 -05:00
Kattni
bbccf26580
Merge pull request #93 from adafruit/pylint-update
Ran black, updated to pylint 2.x
2020-03-17 15:20:06 -04:00
dherrada
d387561329 Ran black, updated to pylint 2.x 2020-03-16 15:56:34 -04:00
sommersoft
29a457bfd5 update code of coduct: discord moderation contact section
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-15 18:31:29 -05:00
sommersoft
bb21a87b84
Merge pull request #92 from sommersoft/patch_coc
Update Code of Conduct
2020-03-13 14:57:44 -05:00
sommersoft
c5727b1707 update code of conduct 2020-03-13 13:57:51 -05:00
sommersoft
a73ca4cc50 update pylintrc for black
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-08 19:11:47 -05:00
sommersoft
1f84da8cd1 build.yml: move pylint, black, and Sphinx installs to each repo; add description to 'actions-ci/install.sh'
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-03-05 10:11:09 -06:00
Kattni
c29ea4ae49
Merge pull request #91 from FoamyGuy/master
trying single line comments for pylint
2020-02-28 14:19:44 -05:00
FoamyGuy
4965fcc04f trying single line comments for pylint 2020-02-28 13:07:16 -06:00
foamyguy
fbbe97788e
Merge pull request #66 from mytechnotalent/ESP32-MAC-order-library-fix
Fixed MAC reverse byte order issue within the ESP32SPI library as it …
2020-02-27 21:43:24 -06:00
anecdata
f6c3e5e9c9 simplified print output 2020-02-21 10:00:00 -06:00
anecdata
927476a3b4 improve comments 2020-02-21 09:37:57 -06:00
anecdata
0d0da219ce Fix PyLint issue 2020-02-21 09:30:49 -06:00
anecdata
f3c18ef140 Fix Pylint issues 2020-02-21 09:19:04 -06:00
anecdata
936ad82652 Merge branch 'gpio' of https://github.com/anecdata/Adafruit_CircuitPython_ESP32SPI into gpio 2020-02-21 09:05:11 -06:00