-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
79 lines (64 loc) · 1.9 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sentry_devenv"
version = "1.13.0"
authors = [
{ name="Joshua Li", email="[email protected]" },
{ name="Ian Woodard", email="[email protected]" },
{ name="Buck Evan", email="[email protected]" },
]
description = "Utilities for setting up a Sentry development environment"
readme = "README.md"
# only tested on 3.11+, this is so internal pypi is happy
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"typing_extensions",
"sentry-sdk",
]
[tool.setuptools.package-data]
"devenv" = ["py.typed"]
[tool.setuptools.packages]
find = {}
[tool.black]
line-length = 80
target-version = ['py311']
skip-magic-trailing-comma = true
[project.scripts]
devenv = "devenv.main:main"
[tool.mypy]
python_version = "3.11"
strict = true
# disallow Any typing:
disallow_any_unimported = true
# there's too many Any's in typeshed:
disallow_any_expr = false
disallow_any_decorated = true
disallow_any_explicit = true
implicit_reexport = false
warn_no_return = true
warn_unreachable = true
allow_redefinition = true
[tool.pyright]
include = ["."]
pythonVersion = "3.11"
typeCheckingMode = "strict"
# turn on all the checks not already enabled by "strict":
reportCallInDefaultInitializer = "error"
reportImplicitStringConcatenation = "error"
reportMissingSuperCall = "error"
reportPropertyTypeMismatch = "error"
reportUninitializedInstanceVariable = "error"
reportUnnecessaryTypeIgnoreComment = "error"
reportUnusedCallResult = "none" # too noisy
# don't flag arguments as long as their type is known
reportMissingParameterType = "none"
reportUnknownParameterType = "error"
#### don't flag missing typestubs, as long as everything is typed
###reportMissingTypeStubs = false