Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
beaugunderson committed Jan 23, 2025
1 parent 0373cb7 commit ad1e27f
Showing 1 changed file with 97 additions and 109 deletions.
206 changes: 97 additions & 109 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,69 +1,84 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["hatchling"]

[dependency-groups]
dev = [
"grpcio-tools>=1.60.1,<2",
"mypy",
"pre-commit",
"pytest",
"pytest-asyncio>=0.24,<0.26",
"pytest-mock",
"python-semantic-release",
"requests-mock",
"ruff>=0.8.0,<0.9",
"types-protobuf",
"types-requests"
]

[project]
name = "canvas"
version = "0.14.0"
description = "SDK to customize event-driven actions in your Canvas instance"
authors = [{ name = "Canvas Team", email = "engineering@canvasmedical.com" }]
requires-python = ">=3.11,<3.13"
readme = "README.md"
license = "MIT"
authors = [{email = "engineering@canvasmedical.com", name = "Canvas Team"}]
dependencies = [
"cookiecutter",
"cron-converter>=1.2.1,<2",
"deprecation>=2.1.0,<3",
"django>=5.1.1,<6",
"django-stubs[compatible-mypy]>=5.1.1,<6",
"django-timezone-utils>=0.15.0,<0.16",
"env-tools>=2.4.0,<3",
"grpcio>=1.60.1,<2",
"ipython>=8.21.0,<9",
"jsonschema>=4.21.1,<5",
"keyring",
"protobuf>=4.25.3,<5",
"psycopg[binary]>=3.2.2,<4",
"pydantic>=2.6.1,<3",
"pyjwt==2.10.1",
"python-dotenv>=1.0.1,<2",
"rapidfuzz>=3.10.1,<4",
"redis>=5.0.4,<6",
"requests",
"restrictedpython~=7.1",
"statsd>=4.0.1,<5",
"typer",
"typing-extensions>=4.8,<4.13",
"websocket-client>=1.7.0,<2",
"cookiecutter",
"cron-converter>=1.2.1,<2",
"deprecation>=2.1.0,<3",
"django-stubs[compatible-mypy]>=5.1.1,<6",
"django-timezone-utils>=0.15.0,<0.16",
"django>=5.1.1,<6",
"env-tools>=2.4.0,<3",
"grpcio>=1.60.1,<2",
"ipython>=8.21.0,<9",
"jsonschema>=4.21.1,<5",
"keyring",
"protobuf>=4.25.3,<5",
"psycopg[binary]>=3.2.2,<4",
"pydantic>=2.6.1,<3",
"pyjwt==2.10.1",
"python-dotenv>=1.0.1,<2",
"rapidfuzz>=3.10.1,<4",
"redis>=5.0.4,<6",
"requests",
"restrictedpython~=7.1",
"statsd>=4.0.1,<5",
"typer",
"typing-extensions>=4.8,<4.13",
"websocket-client>=1.7.0,<2"
]
description = "SDK to customize event-driven actions in your Canvas instance"
license = "MIT"
name = "canvas"
readme = "README.md"
requires-python = ">=3.11,<3.13"
version = "0.14.0"

[project.scripts]
canvas = "canvas_cli.main:app"

[dependency-groups]
dev = [
"grpcio-tools>=1.60.1,<2",
"mypy",
"pre-commit",
"pytest",
"pytest-asyncio>=0.24,<0.26",
"pytest-mock",
"python-semantic-release",
"requests-mock",
"ruff>=0.8.0,<0.9",
"types-protobuf",
"types-requests",
]

[tool.django-stubs]
django_settings_module = "settings"

[tool.uv]
[tool.hatch.build.targets.sdist]
include = [
"canvas_cli",
"canvas_generated",
"canvas_sdk",
"logger",
"plugin_runner",
"pubsub",
"settings.py"
]

[[tool.uv.index]]
name = "PyPI"
url = "https://pypi.org/simple/"
default = true
[tool.hatch.build.targets.wheel]
include = [
"canvas_cli",
"canvas_generated",
"canvas_sdk",
"logger",
"plugin_runner",
"pubsub",
"settings.py"
]

[tool.mypy]
check_untyped_defs = true
Expand All @@ -84,37 +99,15 @@ show_error_context = true
strict_equality = true
strict_optional = true
untyped_calls_exclude = [
"canvas_generated",
"redis",
"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.hatch.build.targets.sdist]
include = [
"canvas_cli",
"canvas_generated",
"canvas_sdk",
"logger",
"plugin_runner",
"pubsub",
"settings.py",
]

[tool.hatch.build.targets.wheel]
include = [
"canvas_cli",
"canvas_generated",
"canvas_sdk",
"logger",
"plugin_runner",
"pubsub",
"settings.py",
]

[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
Expand All @@ -123,21 +116,19 @@ init_typed = true
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',
'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",
".git",
".mypy_cache",
".pytest_cache",
"__pycache__",
"custom-plugins",
"node_modules",
"static",
"static-files"
]
python_files = ["*_tests.py", "test_*.py", "tests.py"]

Expand All @@ -147,27 +138,17 @@ line-length = 100
target-version = "py311"

[tool.ruff.lint]
ignore = [
"D100",
"D104",
"D105",
"D106",
"D107",
"D200",
"D205",
"D212",
"E501",
]
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
"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]
Expand All @@ -184,3 +165,10 @@ match = "main"
tag_format = "{version}"
version_source = "tag"
version_toml = ["pyproject.toml:project.version"]

[tool.uv]

[[tool.uv.index]]
default = true
name = "PyPI"
url = "https://pypi.org/simple/"

0 comments on commit ad1e27f

Please sign in to comment.