From 8dd65a99a8ea7c2740ef5cb6dfe85aa5e2550cc1 Mon Sep 17 00:00:00 2001 From: phil65 Date: Tue, 15 Oct 2024 17:23:43 +0200 Subject: [PATCH] chore: cleanup --- pyproject.toml | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bf85eb95..00dd814d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,3 @@ -[tool.hatch] - [tool.hatch.metadata] allow-direct-references = true @@ -8,12 +6,8 @@ source = "regex_commit" commit_extra_args = ["-e"] path = "mknodes/__init__.py" -[tool.hatch.dirs.env] -virtual = ".hatch" - -[tool.hatch.envs.default] -python = "3.11" -dependencies = [ +[tool.uv] +dev-dependencies = [ # Linting "mypy", "ruff", @@ -40,24 +34,6 @@ dependencies = [ # Debugging "pyreadline3", "pyinstrument", - - # "prettyqt", - # "PySide6", -] - -[tool.hatch.envs.default.scripts] -test = "pytest -vv" -test-cov-xml = "pytest --cov-report=xml" -test-cov-html = "pytest --cov-report=html" -lint = [ - "hatch run ruff check --fix .", - "hatch run ruff format .", - "hatch run mypy mknodes/", -] -lint-check = [ - "hatch run ruff check .", - "hatch run ruff format --check .", - "hatch run mypy mknodes/", ] [build-system] @@ -76,7 +52,6 @@ classifiers = [ "Development Status :: 4 - Beta", "Framework :: MkDocs", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", @@ -271,17 +246,17 @@ target-version = "py311" preview = true docstring-code-format = true -[tool.ruff.flake8-quotes] +[tool.ruff.lint.flake8-quotes] docstring-quotes = "double" -[tool.ruff.isort] +[tool.ruff.lint.isort] lines-after-imports = 2 lines-between-types = 1 # atomic = true force-sort-within-sections = true combine-as-imports = true -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = ["E402", "I001"] [tool.mknodes] @@ -294,5 +269,5 @@ allowed-commit-types = [ "build", "chore", ] -extras-descriptions = {seedir = "MkSeeDir node"} +extras-descriptions = { seedir = "MkSeeDir node" } docstring-style = "google"