Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 15, 2024
1 parent 2f5616f commit 8dd65a9
Showing 1 changed file with 6 additions and 31 deletions.
37 changes: 6 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[tool.hatch]

[tool.hatch.metadata]
allow-direct-references = true

Expand All @@ -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",
Expand All @@ -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]
Expand All @@ -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",
Expand Down Expand Up @@ -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]
Expand All @@ -294,5 +269,5 @@ allowed-commit-types = [
"build",
"chore",
]
extras-descriptions = {seedir = "MkSeeDir node"}
extras-descriptions = { seedir = "MkSeeDir node" }
docstring-style = "google"

0 comments on commit 8dd65a9

Please sign in to comment.