Files
bili-sync/pyproject.toml
2024-02-02 17:29:13 +08:00

86 lines
2.5 KiB
TOML

[tool.poetry]
name = "bili-sync"
version = "1.1.5"
description = ""
authors = ["amtoaer <amtoaer@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
aerich = "0.7.2"
aiofiles = "23.2.1"
bilibili-api-python = {git = "https://github.com/Nemo2011/bilibili-api.git", rev = "16.2.0b2"}
dataclasses-json = "0.6.2"
loguru = "0.7.2"
pydantic = "2.5.3"
tortoise-orm = "0.20.0"
uvloop = "0.19.0"
[tool.poetry.group.dev.dependencies]
black = "23.11.0"
bump-my-version = "0.15.4"
ipython = "8.17.2"
ruff = "0.1.6"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
select = [
"F", # https://beta.ruff.rs/docs/rules/#pyflakes-f
"E",
"W", # https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
"I", # https://beta.ruff.rs/docs/rules/#isort-i
# "N", # https://beta.ruff.rs/docs/rules/#pep8-naming-n
"UP", # https://beta.ruff.rs/docs/rules/#pyupgrade-up
"S", # https://beta.ruff.rs/docs/rules/#flake8-bandit-s
"B", # https://beta.ruff.rs/docs/rules/#flake8-bugbear-b
"A", # https://beta.ruff.rs/docs/rules/#flake8-builtins-a
"C4", # https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4
"ICN", # https://beta.ruff.rs/docs/rules/#flake8-import-conventions-icn
"G", # https://beta.ruff.rs/docs/rules/#flake8-logging-format-g
"PIE", # https://beta.ruff.rs/docs/rules/#flake8-pie-pie
"T20", # https://beta.ruff.rs/docs/rules/#flake8-print-t20
"RET", # https://beta.ruff.rs/docs/rules/#flake8-return-ret
"SIM", # https://beta.ruff.rs/docs/rules/#flake8-simplify-sim
"TID", # https://beta.ruff.rs/docs/rules/#flake8-tidy-imports-tid
"PTH", # https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
"PD", # https://beta.ruff.rs/docs/rules/#pandas-vet-pd
# "PL", # https://beta.ruff.rs/docs/rules/#pylint-pl
"NPY", # https://beta.ruff.rs/docs/rules/#numpy-specific-rules-npy
"RUF100", # https://beta.ruff.rs/docs/configuration/#automatic-noqa-management
]
ignore = [
"A003", # Class attribute `id` is shadowing a Python builtin
]
exclude = ["migrations"]
[tool.aerich]
tortoise_orm = "constants.TORTOISE_ORM"
location = "./migrations"
src_folder = "./."
[tool.bumpversion]
commit = true
message = "chore: bump version from {current_version} to {new_version}"
tag = true
tag_name = "{new_version}"
tag_message = ""
current_version = "1.1.5"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
[[tool.bumpversion.files]]
filename = "version.py"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"