CircuitPython libraries are now using the latest Pylint and Black formatting! #CircuitPython #Adafruit @adafruit
We’ve updated every CircuitPython library to use the latest version of Pylint and implemented the Black Python formatter. Pylint is a tool for linting code. Linting is the process of checking your code for basic stylistic mistakes. It doesn’t verify that your code works, it simply checks that it looks as good as possible and is readable by others. Black is a really useful code formatting tool maintained by the Python Software Foundation. It reformats files to improve readability. When you contribute code to CircuitPython libraries, your code will be checked for both. You’ll be able to make any fixes at that point, but it’s much easier to set up Pylint and Black on your machine and run them locally.
We have a guide to help! The Improve Your Code with Pylint and Black guide was recently updated to include installation and usage of Black, as well as to reflect the update to the latest Pylint. You are no longer required to specify a particular version of Pylint or Python to be able to check your code locally. The process should be much simpler now. Check out the guide and you’ll be up and running in no time!
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.