chore: migrate to uv

This commit is contained in:
aserper
2025-12-14 00:08:10 -05:00
parent 6311ca3f39
commit c7850ba05f
10 changed files with 754 additions and 83 deletions

View File

@@ -7,20 +7,21 @@ dependencies = [
"Mastodon.py>=1.8.0",
"python-dateutil>=2.8.2",
"requests>=2.31.0",
# Added during uv migration, preserving logic from requirements.txt
]
requires-python = ">=3.10"
[tool.uv]
dev-dependencies = [
"pytest>=9.0.2",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"ruff>=0.1.6",
"mypy>=1.19.0",
"coverage>=7.6.12",
]
[tool.ruff]
# 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 = ["E", "F", "W", "C90"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
@@ -47,12 +48,23 @@ exclude = [
]
line-length = 127
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10
target-version = "py310"
[tool.ruff.mccabe]
[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 = ["E", "F", "W", "C90"]
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.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10