mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Add check:ruff build action * Add fix:ruff action * Add Ruff config Mostly generated by Cursor * Handle rest of lints * Fix formatting * Replace black and isort with ruff-format * Run ruff-format * Fix lint errors * Remove pylint disables * Remove .pylintrc * Update docs * Fix check:format not just checking * Fix isort rule being ignored * Sort imports * Ensure ./ninja format also handles import sorting * Remove unused isort cfg * Enable unsafe fixes in fix:ruff, and enable unused var warning * Re-run on config change; enable unnecessary ARG ignores * Use all pycodestyle errors, and add some more commented-out ones Latter logged on https://github.com/ankitects/anki/issues/4135
43 lines
796 B
TOML
43 lines
796 B
TOML
[project]
|
|
name = "anki-dev"
|
|
version = "0.0.0"
|
|
description = "Local-only environment"
|
|
requires-python = ">=3.9"
|
|
classifiers = ["Private :: Do Not Upload"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"mypy",
|
|
"mypy-protobuf",
|
|
"ruff",
|
|
"pytest",
|
|
"PyChromeDevTools",
|
|
"wheel",
|
|
"hatchling", # for type checking hatch_build.py files
|
|
"mock",
|
|
"types-protobuf",
|
|
"types-requests",
|
|
"types-orjson",
|
|
"types-decorator",
|
|
"types-flask",
|
|
"types-flask-cors",
|
|
"types-markdown",
|
|
"types-waitress",
|
|
"types-pywin32",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
sphinx = [
|
|
"sphinx",
|
|
"sphinx_rtd_theme",
|
|
"sphinx-autoapi",
|
|
]
|
|
|
|
[tool.uv.workspace]
|
|
members = ["pylib", "qt"]
|
|
|
|
[[tool.uv.index]]
|
|
name = "testpypi"
|
|
url = "https://test.pypi.org/simple/"
|
|
publish-url = "https://test.pypi.org/legacy/"
|
|
explicit = true
|