add pre-commit with clang, trailing spaces, and codespell
This commit is contained in:
parent
d4a945f967
commit
e631a58b30
8 changed files with 10 additions and 7 deletions
5
.github/workflows/githubci.yml
vendored
5
.github/workflows/githubci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 don’t 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
|
||||
|
|
|
|||
|
|
@ -91,4 +91,3 @@ void setup1() {
|
|||
void loop1() {
|
||||
yield();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,4 +126,3 @@ void setup1() {
|
|||
void loop1() {
|
||||
yield();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,4 +73,4 @@ void loop() {
|
|||
#endif
|
||||
|
||||
delay(3000); // wait 3 seconds
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue