diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 170e3ef5..fba57905 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,6 +47,7 @@ repos: - id: isort files: \.py$ exclude: ^babelizer/data + args: [--force-single-line-imports] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 diff --git a/babelizer/cli.py b/babelizer/cli.py index fadddf65..09c6df5b 100644 --- a/babelizer/cli.py +++ b/babelizer/cli.py @@ -15,11 +15,14 @@ else: # pragma: no cover (= (3, 11): # pragma: no cover (PY11+) + import tomllib +else: # pragma: no cover (= (3, 11): # pragma: no cover (PY11+) + import tomllib +else: # pragma: no cover (= (3, 12): # pragma: no cover (PY12+) import importlib.resources as importlib_resources else: # pragma: no cover (=5", - "logoizer @ git+https://github.com/mcflugen/logoizer", + "logoizer@ git+https://github.com/mcflugen/logoizer", "pyyaml", - "tomlkit", + "tomli-w", + "tomli; python_version < '3.11'", ] dynamic = [ "readme",