Skip to content

Commit ab33618

Browse files
committed
fix: Update dependencies
Updated dependencies to fix #25. Also added formatting and linting for pyproject.toml using Tombi https://tombi-toml.github.io/tombi/
1 parent 51fd00b commit ab33618

File tree

2 files changed

+40
-35
lines changed

2 files changed

+40
-35
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
fail_fast: false
22
repos:
33
- repo: https://github.com/asottile/pyupgrade
4-
rev: v3.17.0
4+
rev: v3.20.0
55
hooks:
66
- id: pyupgrade
77
args: [--py310-plus]
88
- repo: https://github.com/pycqa/isort
9-
rev: "5.13.2"
9+
rev: "6.0.1"
1010
hooks:
1111
- id: isort
1212
- repo: https://github.com/psf/black
13-
rev: "24.8.0"
13+
rev: "25.1.0"
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/Lucas-C/pre-commit-hooks
1717
rev: v1.5.5
1818
hooks:
1919
- id: remove-tabs
2020
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v4.6.0
21+
rev: v5.0.0
2222
hooks:
2323
- id: trailing-whitespace
2424
- id: check-yaml
2525
exclude: ^zmk/templates
2626
- id: check-added-large-files
2727
- id: check-shebang-scripts-are-executable
28+
- repo: https://github.com/tombi-toml/tombi-pre-commit
29+
rev: v0.4.37
30+
hooks:
31+
- id: tombi-format
32+
- id: tombi-lint

pyproject.toml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@
22
name = "zmk"
33
description = "A command line program to help set up ZMK Firmware"
44
readme = "README.md"
5+
requires-python = ">=3.10"
56
license = { file = "LICENSE" }
67
classifiers = [
7-
"Development Status :: 3 - Alpha",
8-
"Environment :: Console",
9-
"Intended Audience :: Developers",
10-
"Intended Audience :: End Users/Desktop",
11-
"License :: OSI Approved :: MIT License",
12-
"Operating System :: OS Independent",
13-
"Topic :: Software Development",
14-
"Topic :: Utilities",
8+
"Development Status :: 3 - Alpha",
9+
"Environment :: Console",
10+
"Intended Audience :: Developers",
11+
"Intended Audience :: End Users/Desktop",
12+
"License :: OSI Approved :: MIT License",
13+
"Operating System :: OS Independent",
14+
"Topic :: Software Development",
15+
"Topic :: Utilities",
1516
]
16-
requires-python = ">=3.10"
1717
dependencies = [
18-
"backports.strenum; python_version < '3.11'",
19-
"dacite >= 1.8.1, < 2.0.0",
20-
"mako >= 1.3.3, < 2.0.0",
21-
"rich >= 13.6.0, < 14.0.0",
22-
"ruamel.yaml >= 0.18.6, < 0.19.0",
23-
"shellingham >= 1.5.3, < 2.0.0",
24-
"typer >= 0.12.0, < 0.13.0",
25-
"west >= 1.2.0, < 2.0.0",
18+
"backports.strenum; python_version < '3.11'",
19+
"dacite >= 1.9.2, < 2.0.0",
20+
"mako >= 1.3.10, < 2.0.0",
21+
"rich >= 14.1.0, < 15.0.0",
22+
"ruamel.yaml >= 0.18.14, < 0.19.0",
23+
"shellingham >= 1.5.4, < 2.0.0",
24+
"typer >= 0.16.0, < 0.17.0",
25+
"west >= 1.4.0, < 2.0.0",
2626
]
2727
dynamic = ["version"]
2828

29-
[project.optional-dependencies]
30-
dev = ["pre-commit", "pylint", "pyright"]
31-
3229
[project.urls]
30+
Chat = "https://zmk.dev/community/discord/invite"
3331
Documentation = "https://zmk.dev/docs"
34-
"Source Code" = "https://github.com/zmkfirmware/zmk-cli/"
3532
"Issue Tracker" = "https://github.com/zmkfirmware/zmk-cli/issues/"
36-
Chat = "https://zmk.dev/community/discord/invite"
33+
"Source Code" = "https://github.com/zmkfirmware/zmk-cli/"
3734

3835
[project.scripts]
3936
zmk = "zmk.main:app"
4037

38+
[project.optional-dependencies]
39+
dev = ["pre-commit", "pylint", "pyright"]
40+
4141
[build-system]
4242
requires = ["setuptools", "setuptools-scm"]
4343
build-backend = "setuptools.build_meta"
@@ -50,18 +50,18 @@ ignore = "_version.py"
5050

5151
[tool.pylint."MESSAGES CONTROL"]
5252
disable = [
53-
"arguments-differ", # Covered by pyright
54-
"fixme",
55-
"too-few-public-methods",
56-
"too-many-arguments",
57-
"too-many-branches",
58-
"too-many-instance-attributes",
59-
"too-many-locals",
60-
"too-many-positional-arguments",
53+
"arguments-differ", # Covered by pyright
54+
"fixme",
55+
"too-few-public-methods",
56+
"too-many-arguments",
57+
"too-many-branches",
58+
"too-many-instance-attributes",
59+
"too-many-locals",
60+
"too-many-positional-arguments",
6161
]
6262

6363
[tool.setuptools]
6464
packages = ["zmk"]
6565

6666
[tool.setuptools_scm]
67-
write_to = "zmk/_version.py"
67+
version_file = "zmk/_version.py"

0 commit comments

Comments
 (0)