Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,6 +36,7 @@ requests = { version ="^2.22.0", optional = true }
pytest = { version= "^8.0.0", optional = true }
pytest-benchmark = { version = "^4.0", optional = true }
flake8 = { version = "^5.0.4", optional = true }
black = { version = ">=24.8.0", optional = true }

[tool.poetry.extras]
dev = [
Expand All@@ -44,8 +45,12 @@ dev = [
"pytest",
"pytest-benchmark",
"requests",
"black",
]

[tool.black]
include = "(^datadog_lambda/.*\\.pyi?$|^tests/.*\\.pyi?$)"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down
3 changes: 0 additions & 3 deletions scripts/check_format.sh
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
#!/bin/sh
set -e

PYTHON_VERSION=$(python -c 'import sys; print(sys.version_info.major)')
pip install -Iv black==25.11.0

python -m black --check datadog_lambda/ --diff
python -m black --check tests --diff

Expand Down
Loading