remove pyproject-fmt hook

reformat with EBT
This commit is contained in:
onyx-and-iris 2025-04-02 21:16:04 +01:00
parent ca0f6a8e9a
commit d07581593f
2 changed files with 85 additions and 47 deletions

View File

@ -5,8 +5,3 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 'v2.5.0'
hooks:
- id: pyproject-fmt

View File

@ -9,8 +9,7 @@ description = "DuckyPad macros for streaming software"
readme = "README.md"
keywords = []
license = "MIT"
authors.email = "code@onyxandiris.online"
authors.name = "onyx-and-iris"
authors = [{ email = "code@onyxandiris.online", name = "onyx-and-iris" }]
requires-python = ">=3.12,<4.0"
classifiers = [
"Development Status :: 4 - Beta",
@ -33,12 +32,14 @@ dependencies = [
"xair-api>=2.4.1",
]
urls.Documentation = "https://github.com/unknown/duckypad-twitch#readme"
urls.Issues = "https://github.com/unknown/duckypad-twitch/issues"
[project.scripts]
duckypad-macros = "duckypad_twitch.macros:run"
urls.Source = "https://github.com/unknown/duckypad-twitch"
scripts.duckypad-macros = "duckypad_twitch.macros:run"
[project.urls]
Documentation = "https://github.com/onyx-and-iris/duckypad-twitch#readme"
Issues = "https://github.com/onyx-and-iris/duckypad-twitch/issues"
Source = "https://github.com/onyx-and-iris/duckypad-twitch"
[tool.hatch.metadata]
allow-direct-references = true
@ -69,10 +70,6 @@ fmt = [ "black {args:.}", "ruff --fix {args:.}", "style" ]
all = ["style", "typing"]
[tool.ruff]
target-version = "py312"
line-length = 120
indent-width = 4
exclude = [
".bzr",
".direnv",
@ -96,22 +93,68 @@ exclude = [
"node_modules",
"venv",
]
format.indent-style = "space"
format.quote-style = "single"
format.line-ending = "auto"
format.skip-magic-trailing-comma = false
format.docstring-code-line-length = "dynamic"
format.docstring-code-format = false
lint.select = [ "E4", "E7", "E9", "F" ]
lint.ignore = [ ]
lint.per-file-ignores."__init__.py" = [ "E402", "F401" ]
lint.per-file-ignores."tests/**/*" = [ "PLR2004", "S101", "TID252" ]
lint.fixable = [ "ALL" ]
lint.unfixable = [ ]
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.mccabe.max-complexity = 10
isort.known-first-party = [ "duckypad_twitch" ]
flake8-tidy-imports.ban-relative-imports = "all"
line-length = 120
indent-width = 4
# Assume Python 3.10
target-version = "py312"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Unlike Black, use single quotes for strings.
quote-style = "single"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
[tool.ruff.isort]
known-first-party = ["duckypad_twitch"]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.coverage.run]
source_pkgs = ["duckypad_twitch", "tests"]