Skip to content

Commit ac7904d

Browse files
committed
fix: correct remaining linting errors from latest super-linter report
1 parent c34b9e5 commit ac7904d

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

PULL_REQUEST_DETAILS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,4 @@ This PR significantly improves the overall code quality and maintainability of t
146146
5. **Improving developer experience** with better tooling
147147

148148
All changes are backward compatible and do not introduce breaking changes to existing functionality.
149+

examples/cli-base/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
author=', '.join(["mnq78"]),
1616
author_email=', '.join(["matias.quiroga@nan-labs.com"]),
1717
entry_points='''
18-
[console_scripts]
19-
pycmd=app:start
18+
[console_scripts]
19+
pycmd=app:start
2020
''',
2121
description="Developer tool CLI base.",
2222
)

examples/cli-base/src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def start():
66
parser = argparse.ArgumentParser(description="Just an example",
7-
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
7+
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
88
parser.add_argument("-v", "--verbose", action="store_true", help="increase verbosity")
99
parser.add_argument("-e", "--exclude", action="store_true", help="something to exclude")
1010
args = parser.parse_args()

examples/green-house-migration/docs/assets/css/style.css

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,29 @@ body {
9393
border: 1px solid #e1e4e8;
9494
}
9595

96-
h3 {
97-
font-size: 1.25rem;
98-
}
99-
10096
.sidebar-content h3 {
10197
margin-bottom: 1rem;
10298
color: #24292e;
10399
font-size: 1.1rem;
104100
}
105101

102+
h3 {
103+
font-size: 1.25rem;
104+
}
105+
106+
li {
107+
margin-bottom: 0.25rem;
108+
}
109+
110+
a {
111+
color: #0366d6;
112+
text-decoration: none;
113+
}
114+
115+
a:hover {
116+
text-decoration: underline;
117+
}
118+
106119
.sidebar-menu {
107120
list-style: none;
108121
margin-bottom: 2rem;
@@ -255,19 +268,7 @@ ol {
255268
padding-left: 2rem;
256269
}
257270

258-
li {
259-
margin-bottom: 0.25rem;
260-
}
261-
262271
/* Links */
263-
a {
264-
color: #0366d6;
265-
text-decoration: none;
266-
}
267-
268-
a:hover {
269-
text-decoration: underline;
270-
}
271272

272273
/* Buttons */
273274
.btn {

examples/langgraph-sls-fastapi-rag/scripts/easy-options/easyoptions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ parse_options() {
106106
# Prepare known options
107107
for option in "${options[@]}"; do
108108
option_var=${option#*=}
109-
option_name=${option%=$option_var}
109+
option_name=${option%="$option_var"}
110110
if [[ "${#option_name}" = "1" ]]; then
111111
short_options="${short_options}${option_name}"
112112
if [[ "${#option_var}" -gt "1" ]]; then
@@ -123,7 +123,7 @@ parse_options() {
123123
parameters+=("$argument")
124124
for known_option in "${options[@]}"; do
125125
known_option_var=${known_option#*=}
126-
known_option_name=${known_option%=$known_option_var}
126+
known_option_name=${known_option%="$known_option_var"}
127127
if [[ "$known_option_var" = "?" && "$argument" = --$known_option_name ]]; then
128128
next_is_value="yes"
129129
break

examples/langgraph-sls-fastapi-rag/sls/resource/S3.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resources:
33
S3Bucket:
44
Type: AWS::S3::Bucket
55
Properties:
6-
BucketName: ${file(sls/envs/config.${sls:stage}.yml):s3_bucket_name}
6+
BucketName: ${self:service}${sls:stage}programs
77
CorsConfiguration:
88
CorsRules:
99
- AllowedHeaders:
@@ -40,4 +40,3 @@ Outputs:
4040
Description: S3 bucket for programs
4141
Export:
4242
Name: ${self:service}-${sls:stage}-programs-s3-bucket
43-

examples/langgraph-sls-fastapi-rag/sls/resource/bedrock.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Resources:
22
BedrockIamPolicy:
33
Type: AWS::IAM::Policy
44
Properties:
5-
PolicyName: ${self:service}-${sls:stage}-bedrock-invoke-model-policy
5+
PolicyName: ${self:service}${sls:stage}bedrockinvokemodelpolicy
66
PolicyDocument:
7-
Version: '2012-10-17'
7+
Version: "2012-10-17"
88
Statement:
99
- Effect: Allow
1010
Action:
@@ -13,4 +13,4 @@ Resources:
1313
- "arn:aws:bedrock:${aws:region}::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0"
1414
- "arn:aws:bedrock:${aws:region}::foundation-model/*"
1515
Roles:
16-
- Ref: IamRoleLambdaExecution
16+
- Ref: IamRoleLambdaExecution

examples/langgraph-sls-fastapi-rag/sls/resource/dynamodb-checkpointer.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Resources:
22
DynamoDBAccessPolicy:
33
Type: AWS::IAM::Policy
44
Properties:
5-
PolicyName: ${self:service}-${sls:stage}-dynamodb-access
5+
PolicyName: ${self:service}${sls:stage}dynamodbaccess
66
PolicyDocument:
7-
Version: '2012-10-17'
7+
Version: "2012-10-17"
88
Statement:
99
- Effect: Allow
1010
Action:
@@ -34,4 +34,3 @@ Resources:
3434
PointInTimeRecoveryEnabled: true
3535
SSESpecification:
3636
SSEEnabled: true
37-

0 commit comments

Comments
 (0)