add pre-commit with clang, trailing spaces, and codespell

This commit is contained in:
hathach 2023-03-22 16:21:00 +07:00
parent d4a945f967
commit e631a58b30
No known key found for this signature in database
GPG key ID: F5D50C6D51D17CBA
8 changed files with 10 additions and 7 deletions

View file

@ -17,7 +17,12 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
- uses: actions/checkout@v3
with:
repository: adafruit/ci-arduino

View file

@ -6,7 +6,7 @@ Used internally for making testers, to reduce code replication!
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried for Adafruit Industries.
Written by Limor Fried for Adafruit Industries.
BSD license, check license.txt for more information
All text above must be included in any redistribution

View file

@ -41,7 +41,7 @@ Examples of unacceptable behavior by participants include:
The goal of the standards and moderation guidelines outlined here is to build
and maintain a respectful community. We ask that you dont just aim to be
"technically unimpeachable", but rather try to be your best self.
"technically unimpeachable", but rather try to be your best self.
We value many things beyond technical expertise, including collaboration and
supporting others within our community. Providing a positive experience for

View file

@ -91,4 +91,3 @@ void setup1() {
void loop1() {
yield();
}

View file

@ -126,4 +126,3 @@ void setup1() {
void loop1() {
yield();
}

View file

@ -75,7 +75,7 @@ void setup() {
// prepare SD Card
prepare_sd();
// wait for USB filesytem is mounted. USB host bit-banging and task is
// wait for USB filesystem is mounted. USB host bit-banging and task is
// processed on core1
while (!is_usbfs_mounted) delay(10);

View file

@ -73,4 +73,4 @@ void loop() {
#endif
delay(3000); // wait 3 seconds
}
}

View file

@ -37,7 +37,7 @@ def print_array(payload):
def print_stub(mcu):
data = base64.b64decode(stub[mcu]["data"])
text = base64.b64decode(stub[mcu]["text"])
print("//------------- {} -------------//".format(mcu))
print ("const uint8_t _stub_%s_data[%d] = {" % (mcu, len(data)))
print_array(data)