-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (47 loc) · 1.74 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (47 loc) · 1.74 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
[project]
name = "outlook-tool"
version = "0.2.0"
description = "Standalone GUI to read and export Outlook PST/OST files without Outlook."
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Randy Northrup" }]
dependencies = [
"libpff-python>=20211114",
"xhtml2pdf>=0.2.16",
"pikepdf>=8.0",
]
[project.optional-dependencies]
dev = ["ruff>=0.6", "pytest>=8.0", "icalendar>=5.0"]
[tool.ruff]
line-length = 95
target-version = "py310"
src = ["."]
[tool.ruff.lint]
# Strict, broad rule set. Magic numbers (PLR2004), naming (N), bugbears (B),
# comprehensions (C4), simplifications (SIM), pyupgrade (UP), imports (I),
# returns (RET), unused-arguments (ARG) and Pylint (PL) are all on.
#
# Deliberately NOT enabled:
# * PTH - os.path is used throughout on purpose; a wholesale pathlib rewrite
# adds churn/risk without changing behaviour.
# * BLE - reading PST/OST via the libpff C extension can raise arbitrary
# exceptions on corrupt records; broad `except Exception` is the
# intended robustness pattern and is kept narrow in scope.
select = [
"E", "W", "F", "I", "N", "UP", "B", "C4", "SIM", "RUF",
"PL", "RET", "TID", "A", "ISC", "ICN", "PIE", "ARG",
]
ignore = [
# GUI builders are intentionally long / have many branches & locals.
"PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR0914", "PLR0917",
"PLC0415", # deferred imports (xhtml2pdf/pikepdf) are intentional.
]
[tool.ruff.lint.per-file-ignores]
# Tests may touch internals and use asserts freely.
"tests/*" = ["S101", "PLR2004", "ARG", "BLE001"]
[tool.ruff.lint.flake8-builtins]
builtins-allowed-modules = ["html"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "verify_*.py"]