diff --git a/.gitignore b/.gitignore index e9aaf0b27b..9ab23d38e7 100644 --- a/.gitignore +++ b/.gitignore @@ -110,7 +110,7 @@ secrets.tar # Python things __pycache__ -.python-version +*.pyc .venv # Prerequisites for updating ChibiOS @@ -128,3 +128,6 @@ compile_commands.json via*.json /keyboards/**/keymaps/via/* /keyboards/**/keymaps/vial/* + +# UV +uv.lock diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000..6324d401a0 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..85f5ffaa8b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[project] +name = "qmk-firmware" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.14" +dependencies = [ + "argcomplete>=3.7.0", + "colorama>=0.4.6", + "dotty-dict>=1.3.1", + "hid>=1.0.9", + "hjson>=3.1.0", + "jsonschema>=4", + "milc>=1.9.0", + "pillow>=12.3.0", + "pygments>=2.20.0", + "pyserial>=3.5", + "pyusb>=1.3.1", +] + +[dependency-groups] +dev = [ + "flake8>=7.3.0", + "nose2>=0.16.0", + "pep8-naming>=0.15.1", + "pyflakes>=3.4.0", + "yapf>=0.43.0", +] diff --git a/requirements-dev.txt b/requirements-dev.txt index 7213707338..6f570645a9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,9 +1 @@ -# Install the necessary requirements --r requirements.txt - -# Python development requirements -nose2 -flake8 -pep8-naming -pyflakes -yapf +# Make QMK's CLI realize that this is a valid QMK clone... diff --git a/requirements.txt b/requirements.txt index 68b05d64e6..6f570645a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1 @@ -# Python requirements -# platformdirs -argcomplete -colorama -dotty-dict -hid -hjson -jsonschema>=4 -milc>=1.9.0 -pygments -pyserial -pyusb -pillow +# Make QMK's CLI realize that this is a valid QMK clone...