Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 1.56 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (71 loc) · 1.56 KB
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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "readwise-wiki"
version = "0.1.0"
description = "Ingest Readwise highlights and emit a Wikiwise-compatible LLM wiki"
requires-python = ">=3.12"
dependencies = [
"Django>=5.1,<6.0",
"celery[redis]>=5.4",
"redis>=5.0",
"psycopg[binary]>=3.2",
"django-environ>=0.11",
"requests>=2.32",
"openai>=1.50",
"rapidfuzz>=3.10",
"gunicorn>=23",
"whitenoise[brotli]>=6",
"pgvector>=0.3",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3",
"pytest-django>=4.9",
"pytest-cov>=5.0",
"factory-boy>=3.3",
"responses>=0.25",
"ruff>=0.7",
"pre-commit>=4.0",
]
[tool.setuptools.packages.find]
include = ["config*", "wiki*"]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["migrations"]
[tool.ruff.lint]
select = [
"E", "F", "W", # pycodestyle / pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"SIM", # simplify
"DJ", # django
]
ignore = [
"E501", # line length handled by formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011", "DJ"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
python_files = ["test_*.py", "*_test.py"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--cov=wiki",
"--cov-report=term-missing",
]
filterwarnings = [
"ignore::DeprecationWarning:celery.*",
]
[tool.coverage.run]
source = ["wiki"]
omit = [
"*/migrations/*",
"*/tests/*",
"wiki/management/__init__.py",
]