File tree 2 files changed +33
-0
lines changed
DynamoDbEncryption/runtimes/python
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,33 @@ myst-parser = "^4"
45
45
sphinx = " ^7"
46
46
sphinx_rtd_theme = " ^2"
47
47
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
+
48
75
[build-system ]
49
76
requires = [" poetry-core<2.0.0" ]
50
77
build-backend = " poetry.core.masonry.api"
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ commands =
52
52
--cov-report =term-missing \
53
53
--cov-fail-under =100
54
54
55
+ [testenv:ruff-src]
56
+ commands = ruff check src/aws_dbesdk_dynamodb/
57
+
58
+ [testenv:ruff-test]
59
+ commands = ruff check test/
60
+
55
61
# Linters
56
62
; [testenv:blacken]
57
63
; basepython = python3
You can’t perform that action at this time.
0 commit comments