Skip to content

Commit a422e89

Browse files
committed
passing more pre-commit, disabling pylint in examples
1 parent b89c2d1 commit a422e89

File tree

15 files changed

+51
-12
lines changed

15 files changed

+51
-12
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ repos:
2626
args:
2727
- --disable=consider-using-f-string
2828
exclude: "^(docs/|examples/|tests/|setup.py$)"
29-
- id: pylint
30-
name: pylint (example code)
31-
description: Run pylint rules on "examples/*.py" files
32-
types: [python]
33-
files: "^examples/"
34-
args:
35-
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
29+
# - id: pylint
30+
# name: pylint (example code)
31+
# description: Run pylint rules on "examples/*.py" files
32+
# types: [python]
33+
# files: "^examples/"
34+
# args:
35+
# - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
3636
- id: pylint
3737
name: pylint (test code)
3838
description: Run pylint rules on "tests/*.py" files

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ The code has been adpated to the ESP32S2 firt, then back to using socket.recv an
2121

2222
Original uwebsockets implementation:
2323
https://github.com/danni/uwebsockets
24+
25+
26+
SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
27+
SPDX-License-Identifier: MIT

examples/connect_circuitpython.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
3+
14
from secrets import secrets
25

36

examples/cpython_server/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ Accepted formats include:
2323
- any of: `aqua` `black` `blue` `green` `magenta` `orange` `pink` `purple` `red` `turquoise` `white` `yellow`
2424

2525
From the board side, you can press buttons, if there are buttons configured, look in the `client.py` script. The buttons pressed will be printed out on the server console.
26+
27+
28+
SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
29+
SPDX-License-Identifier: MIT

examples/cpython_server/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
13
"""
24
Client/Server demo for websockets
35

examples/cpython_server/echo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env python
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
23

34
import asyncio
45
import websockets

examples/cpython_server/server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
3+
14
from aioconsole import ainput
25
import asyncio
36
import json

examples/obs_remote_demo/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ The colors are setup the following way:
2222
- When we exit a state, we reset the pattern
2323

2424
The `obs_pins.py` and `obs_colors.py` files contain comments showing ways to set it up using an 8-pixels RGBW neopixel stick.
25+
26+
27+
SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
28+
SPDX-License-Identifier: MIT

examples/obs_remote_demo/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
3+
14
from digitalio import DigitalInOut, Pull
25
import gamepad
36
import gc

examples/obs_remote_demo/obs_colors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2022 Neradoc
2+
# SPDX-License-Identifier: MIT
3+
14
# base colors
25
STARTUP = (50, 50, 50)
36
NEUTRAL = (0, 0, 0)

0 commit comments

Comments
 (0)