Skip to content

keewes/kmk_firmware

 
 

Repository files navigation

KMK: Clackety Keyboards Powered by Python

GitHub GitHub contributors Discord Lines of code GitHub issues GitHub closed issues

Documentation available at 📖 kmkfw.io.

KMK is a feature-rich and beginner-friendly firmware for computer keyboards written and configured in CircuitPython.

Synchronous chatter about KMK is available in the official Matrix room, #kmkfw:klar.sh. (Note: the KMK chat room is not a bug tracker, and it is not necessarily monitored by the maintainer crew, though we may lurk there sometimes.) This channel is bridged to Discord here for convenience.

Features

Getting Started

KMK requires CircuitPython version 7.0 or higher. Our getting started guide can be found here.

Code Style

KMK uses Black with a Python 3.6 target and, (controversially?) single quotes. Further code styling is enforced with isort and flake8 with several plugins. make fix-isort fix-formatting before a commit is a good idea, and CI will fail if inbound code does not adhere to these formatting rules. Some exceptions are found in setup.cfg loosening the rules in isolated cases, notably user_keymaps (which is also not subject to Black formatting for reasons documented in pyproject.toml).

Tests

Unit tests within the tests folder mock various CircuitPython modules to allow them to be executed in a desktop development environment.

Execute tests using the command python -m unittest.

License, Copyright, and Legal

All software in this repository is licensed under the GNU Public License, version 3. All documentation and hardware designs are licensed under the Creative Commons Attribution-ShareAlike 4.0 license. Contributions to this repository must use these licenses unless otherwise agreed to by the Core team.

Due to ethical and legal concerns, any works derived from GitHub Copilot or similar artificial intelligence tooling are unacceptable for inclusion in any first-party KMK repository or other code collection. We further recommend not using GitHub Copilot while developing anything KMK-related, regardless of intent to submit upstream.

About

Clackety Keyboards Powered by Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%