-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
160 lines (146 loc) · 3.7 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.django-stubs]
django_settings_module = "settings"
[tool.mypy]
check_untyped_defs = true
color_output = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = false
disallow_untyped_defs = true
error_summary = true
exclude = [
"canvas_generated/"
]
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = true
no_implicit_optional = true
plugins = ["mypy_django_plugin.main", "pydantic.mypy"]
pretty = true
show_error_context = true
strict_equality = true
strict_optional = true
untyped_calls_exclude = ["canvas_generated", "redis"] # https://github.com/python/typeshed/issues/10592
warn_no_return = true
warn_redundant_casts = true
warn_return_any = false
warn_unreachable = true
warn_unused_ignores = true
[tool.poetry]
authors = ["Canvas Team <engineering@canvasmedical.com>"]
description = "SDK to customize event-driven actions in your Canvas instance"
license = "MIT"
name = "canvas"
packages = [
{include = "canvas_cli"},
{include = "canvas_generated"},
{include = "canvas_sdk"},
{include = "logger"},
{include = "plugin_runner"},
{include = "pubsub"},
{include = "settings.py"}
]
readme = "README.md"
version = "0.10.2"
[tool.poetry.dependencies]
cookiecutter = "*"
cron-converter = "^1.2.1"
django = "^5.1.1"
django-stubs = {extras = ["compatible-mypy"], version = "^5.1.1"}
django-timezone-utils = "^0.15.0"
env-tools = "^2.4.0"
grpcio = "^1.60.1"
ipython = "^8.21.0"
jsonschema = "^4.21.1"
keyring = "*"
protobuf = "^4.25.3"
psycopg = {extras = ["binary"], version = "^3.2.2"}
pydantic = "^2.6.1"
pyjwt = "2.10.1"
python = ">=3.11,<3.13"
python-dotenv = "^1.0.1"
rapidfuzz = "^3.10.1"
redis = "^5.0.4"
requests = "*"
restrictedpython = "^7.1"
statsd = "^4.0.1"
typer = {version = "*"}
typing-extensions = ">=4.8,<4.13"
websocket-client = "^1.7.0"
[tool.poetry.group.dev.dependencies]
grpcio-tools = "^1.60.1"
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-asyncio = ">=0.24,<0.26"
pytest-mock = "*"
python-semantic-release = "*"
requests-mock = "*"
ruff = "^0.8.0"
types-protobuf = "*"
types-requests = "*"
[tool.poetry.scripts]
canvas = "canvas_cli.main:app"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
[tool.pytest.ini_options]
addopts = "--durations=10"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
'ignore:No directory at.*static.*:UserWarning:whitenoise.base',
'ignore:SelectableGroups dict interface is deprecated. .*:DeprecationWarning'
]
markers = [
'integtest: mark a test as being an integration test with external dependencies'
]
norecursedirs = [
".git",
".mypy_cache",
".pytest_cache",
"__pycache__",
"custom-plugins",
"node_modules",
"static",
"static-files"
]
python_files = ["*_tests.py", "test_*.py", "tests.py"]
[tool.ruff]
exclude = [
"canvas_generated/"
]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
ignore = ["D100", "D104", "D105", "D106", "D107", "D200", "D205", "D212", "E501"]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"SIM", # flake8-simplify
"UP", # pyupgrade
"W" # pycodestyle warnings
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["typer.Argument", "typer.Option"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.semantic_release]
build_command = "poetry build"
commit_message = "chore: v{version}\n\nSee the changelog for changes."
commit_version_number = true
match = "main"
tag_format = "{version}"
version_source = "tag"
version_toml = [
"pyproject.toml:tool.poetry.version"
]