-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (107 loc) · 2.83 KB
/
pyproject.toml
File metadata and controls
122 lines (107 loc) · 2.83 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
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
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "raygun4py"
dynamic = ["version"]
authors = [{ name = "Raygun", email = "hello@raygun.io" }]
description = "Official Raygun provider for Python"
readme = "README.rst"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Communications",
]
dependencies = [
"jsonpickle>=4.0.4",
"blinker>=1.3.0",
"requests>=2.9.1",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"coveralls>=1.5.1",
"WebTest>=2.0.32",
"ruff",
"mypy>=1.0",
"types-requests",
"django>=3.2",
"flask>=2.0",
]
[project.scripts]
raygun4py = "raygun4py.cli:main"
[project.urls]
Homepage = "https://raygun.com"
Documentation = "https://raygun.com/documentation/language-guides/python/crash-reporting/installation/"
Repository = "https://github.com/MindscapeHQ/raygun4py"
Changelog = "https://github.com/MindscapeHQ/raygun4py/blob/master/CHANGELOG.md"
[tool.hatch.version]
path = "python3/raygun4py/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/python3/raygun4py",
"/README.rst",
"/LICENSE",
"/CHANGELOG.md",
]
[tool.hatch.build.targets.wheel]
packages = ["python3/raygun4py"]
[tool.hatch.build.targets.wheel.sources]
"python3/raygun4py" = "raygun4py"
[tool.coverage.report]
omit = [
"*/__init__.py",
"*/site-packages/*",
"*/dist-packages/*",
"*/tests/*",
"/opt/*",
]
exclude_lines = [
"pragma: no cover",
"except Exception as e:",
"except Exception:",
]
[tool.pytest.ini_options]
testpaths = ["python3/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
strict_optional = true
files = ["python3/raygun4py"]
exclude = ["python3/tests", "python3/raygun4py/middleware", "python3/raygun4py/cli.py"]
[[tool.mypy.overrides]]
module = ["jsonpickle", "blinker", "webtest.*", "django.*", "flask.*"]
ignore_missing_imports = true
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"