File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
DynamoDbEncryption/runtimes/python Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,33 @@ myst-parser = "^4"
4545sphinx = " ^7"
4646sphinx_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 ]
4976requires = [" poetry-core<2.0.0" ]
5077build-backend = " poetry.core.masonry.api"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments