-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
120 lines (107 loc) · 3.54 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
117
118
119
120
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "python-oxmsg"
authors = [{name = "Steve Canny", email = "[email protected]"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Communications :: Email",
"Topic :: File Formats",
"Topic :: Office/Business :: Office Suites",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"click",
"olefile",
"typing_extensions>=4.9.0",
]
description = "Extract attachments from Outlook .msg files."
dynamic = ["version"]
keywords = ["ms-oxmsg", "outlook", "email"]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
[project.scripts]
oxmsg = "oxmsg.cli:oxmsg"
[project.urls]
Changelog = "https://github.com/scanny/python-oxmsg/blob/master/CHANGELOG.md"
Documentation = "https://scanny.github.io/python-oxmsg/"
Homepage = "https://github.com/scanny/python-oxmsg"
Repository = "https://github.com/scanny/python-oxmsg"
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
[tool.coverage.run]
omit = [
"*/domain/model.py"
]
[tool.pyright]
include = ["src/oxmsg", "tests"]
pythonPlatform = "All"
pythonVersion = "3.9"
reportImportCycles = true
reportUnnecessaryCast = true
reportUnnecessaryTypeIgnoreComment = true
stubPath = "./typings"
typeCheckingMode = "strict"
verboseOutput = true
[tool.pytest.ini_options]
filterwarnings = [
# -- exit on any warning not explicitly ignored here --
"error",
# -- pytest-xdist plugin may warn about `looponfailroots` deprecation --
"ignore::DeprecationWarning:xdist",
# -- pytest complains when pytest-xdist is not installed --
"ignore:Unknown config option. looponfailroots:pytest.PytestConfigWarning",
]
looponfailroots = ["src", "tests"]
norecursedirs = [
"*.egg-info",
".git",
"_scratch",
".tox",
]
python_files = ["test_*.py"]
python_classes = ["Test", "Describe"]
python_functions = ["it_", "its_", "they_", "and_", "but_"]
testpaths = "tests"
[tool.ruff]
exclude = []
line-length = 100
target-version = "py39"
[tool.ruff.lint]
ignore = [
"COM812", # -- over-aggressively insists on trailing commas where not desired --
"PT001", # -- wants @pytest.fixture() instead of @pytest.fixture --
"PT005", # -- rejects leading underscore fixtures, as commonly appear in unit tests --
]
select = [
"C4", # -- flake8-comprehensions --
"COM", # -- flake8-commas --
"E", # -- pycodestyle errors --
"F", # -- pyflakes --
"I", # -- isort (imports) --
"PLR0402", # -- Name compared with itself like `foo == foo` --
"PT", # -- flake8-pytest-style --
"SIM", # -- flake8-simplify --
"UP015", # -- redundant `open()` mode parameter (like "r" is default) --
"UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
"UP032", # -- Use f-string instead of `.format()` call --
"UP034", # -- Avoid extraneous parentheses --
]
[tool.ruff.lint.isort]
known-first-party = ["oxmsg"]
known-local-folder = []
[tool.setuptools.dynamic]
version = {attr = "oxmsg.__version__"}