-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
116 lines (102 loc) · 3.37 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[project]
name = "privatebin"
version = "0.2.1"
description = "Python library for interacting with PrivateBin's v2 API (PrivateBin >= 1.3) to create, retrieve, and delete encrypted pastes."
authors = [{ name = "Ravencentric", email = "me@ravencentric.cc" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
keywords = ["paste", "privatebin", "pastebin"]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
dependencies = [
"base58>=2.1.1",
"cryptography>=44.0.2",
"httpx>=0.28.1",
"msgspec>=0.19.0",
]
[project.urls]
Repository = "https://github.com/Ravencentric/privatebin"
Documentation = "https://privatebin.ravencentric.cc/"
[project.optional-dependencies]
cli = ["cyclopts>=3.10.0", "rich>=13.9.4"]
[project.scripts]
privatebin = "privatebin.__main__:app"
[dependency-groups]
docs = [
"mkdocs-autorefs>=1.4.1",
"mkdocs-material>=9.6.7",
"mkdocstrings[python]>=0.29.0",
]
lint = ["mypy>=1.15.0", "ruff>=0.11.0"]
test = [
"coverage[toml]>=7.6.12",
"pytest>=8.3.5",
"pytest-httpx>=0.35.0",
"pytest-socket>=0.7.0",
"tomli>=2.2.1",
]
dev = [
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
]
[tool.ruff]
line-length = 99
[tool.ruff.lint]
extend-select = [
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
"D4", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"FBT", # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
"ISC", # https://docs.astral.sh/ruff/rules/multi-line-implicit-string-concatenation/
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"RET", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
"PL", # https://docs.astral.sh/ruff/rules/#pylint-pl
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
"TC", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
]
fixable = ["ALL"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["msgspec.Struct"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D", "FBT", "PL"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
strict = true
pretty = true
files = ["src/**/*.py", "tests/**/*.py"]
enable_error_code = ["ignore-without-code"]
[tool.pytest.ini_options]
addopts = [
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config",
"--disable-socket",
]
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = ["tests"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:", # Only used for type-hints
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]