Add Oxocards ports - #8600
Conversation
|
I'm having a problem with the "uncrustify" of the "pre-commit". It seems to run fine on my machine : But it fails in the Github action. Note that when the pre-commit changed my files, it also produced many warnings : I don't have experience with uncrustify (I'm rather using clang-format), but I will do some research on how to fix this. |
I was using uncrustify version 0.77.1 and it does not work like the version 0.72 used by Ununtu 22.04.
|
I have a potential explanation. I am using a mac and I installed uncrustify using Homebrew. Homebrew installs the version 0.77.1_f. The github actions uses the uncrustify from the Ubuntu packages and it installs the version 0.72 The versions 0.77.1_f and 0.72 do not produce the same result! I guess that the uncrustify configuration files on CircuitPython are not yet ready for the version 0.77.1. Should I open an issue for this ? |
|
I had some interesting discussions with @jepler on Discord and I actually missed the information concerning the version of uncrustify in the doc. Sorry. |
dhalbert
left a comment
There was a problem hiding this comment.
This looks fine. As for copyright, you could change the files you change to be copyright by you, but it's not a requirement.
As discussed in discord, we use a specific version of uncrustify, with specific settings, to match up with what MicroPython uses. This prevents needless skew from upstream.
|
I won't merge immediately in case you want to change the copyright, but it doesn't really matter. |
Thank you very much for the explanation. This makes the contribution somehow harder for Mac users, but it really makes sense. I might write a document to explain how to do it. |
I don't need my name in the copyright, so feel free to merge the pull request whenever you want. |
Feel free to keep the creation ID listing in a repo you own so you don't need us to review it. Linking to it from here would be nice: https://github.com/creationid/creators |

This change adds CircuitPython for the Oxocards boards based on ESP32 (https://oxocard.ch/en/).
I was not sure about the copyright notices in the source files. I left "Scott Shawcroft" and "Dan Halbert" in
board.candmpconfigboard.h. Let me know if I must put my name instead.I also ran
pre-commit run --all-files, but it changes many other ".c" and ".h" files. Is this normal, or do I have a problem with my configuration ? I also had many errors with uncrustify (such ascircuitpython/tools/uncrustify.cfg:1058: Expected number , for 'indent_shift'; got 'false').The CREATOR_ID and CREATION_ID are not yet registered. I plan to do it once the pull request is accepted.
Thank you in advance for your feedback.