Skip to content

Commit 2387899

Browse files
author
Lucas McDonald
committed
only config
1 parent 354b806 commit 2387899

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Diff for: DynamoDbEncryption/runtimes/python/pyproject.toml

+27
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,33 @@ myst-parser = "^4"
4545
sphinx = "^7"
4646
sphinx_rtd_theme = "^2"
4747

48+
# Package linting
49+
50+
[tool.poetry.group.linting]
51+
optional = true
52+
53+
[tool.poetry.group.linting.dependencies]
54+
ruff = "^0.11.5"
55+
pydocstyle = "^6.3.0"
56+
black = "^25.1.0"
57+
58+
[tool.ruff]
59+
exclude = [
60+
# Don't lint Dafny-generated code
61+
"internaldafny",
62+
# Don't re-lint Smithy-generated code
63+
"smithygenerated",
64+
]
65+
line-length=120
66+
indent-width=4
67+
target-version = "py311"
68+
69+
[tool.pydocstyle]
70+
match-dir = "^(?!internal$|internaldafny$|smithygenerated$).*"
71+
72+
[tool.black]
73+
exclude = "/(internal|internaldafny|smithygenerated)(/|$)"
74+
4875
[build-system]
4976
requires = ["poetry-core<2.0.0"]
5077
build-backend = "poetry.core.masonry.api"

Diff for: DynamoDbEncryption/runtimes/python/tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ commands =
5252
--cov-report=term-missing \
5353
--cov-fail-under=100
5454

55+
[testenv:ruff-src]
56+
commands = ruff check src/aws_dbesdk_dynamodb/
57+
58+
[testenv:ruff-test]
59+
commands = ruff check test/
60+
5561
# Linters
5662
; [testenv:blacken]
5763
; basepython = python3

0 commit comments

Comments
 (0)