Skip to content

Commit f2ce4fa

Browse files
committed
style: lint flake8 rules
1 parent 639b759 commit f2ce4fa

File tree

7 files changed

+20
-29
lines changed

7 files changed

+20
-29
lines changed

.flake8

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
[flake8]
2-
max-line-length = 120
2+
ignore = D205,D413,D400,D401
3+
max-line-length =120
4+
max-complexity = 10
5+
exclude = "api/terraform/python/layer_genai/venv"
6+
extend-exclude = "*__init__.py,*__version__.py,venv,lambda_dist_pkg"
7+
select = "C101"

.pylintrc

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[MASTER]
2-
ignore-paths =
3-
api/terraform/python/lambda_openai_v2/lambda_dist_pkg,
4-
api/terraform/python/lambda_openai/lambda_dist_pkg,
5-
api/terraform/python/lambda_langchain/lambda_dist_pkg
62
ignore =
73
__version__.py
84

CHANGELOG.md

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
# [0.7.0](https://github.com/FullStackWithLawrence/aws-openai/compare/v0.6.5...v0.7.0) (2023-12-18)
22

3-
43
### Bug Fixes
54

6-
* version writer was skipping first two lines ([5be9cf2](https://github.com/FullStackWithLawrence/aws-openai/commit/5be9cf2f313de60b4d5dfd64fcbd080194cff03c))
7-
5+
- version writer was skipping first two lines ([5be9cf2](https://github.com/FullStackWithLawrence/aws-openai/commit/5be9cf2f313de60b4d5dfd64fcbd080194cff03c))
86

97
### Features
108

11-
* add lists of .env and terraform.tfvars variables in use for settings ([ed64c74](https://github.com/FullStackWithLawrence/aws-openai/commit/ed64c74bfd7fdd7a99f684b5a22c65c1c1fc7a58))
12-
* add openai and langchain parameters to unit tests ([d19af9f](https://github.com/FullStackWithLawrence/aws-openai/commit/d19af9fa108df885f091e23057f38e15f1df9552))
13-
* add properties to report whether .env and/or terraform.tfvars files are in use ([5e3bea6](https://github.com/FullStackWithLawrence/aws-openai/commit/5e3bea603af3a9e96bb35ec601924edbe8e7d305))
14-
* add Settings class and refactor ([b9f0286](https://github.com/FullStackWithLawrence/aws-openai/commit/b9f028632622c5a81eeee7bc8b5fe920d72a5bed))
15-
* add unit test for langchain ([9a2b00d](https://github.com/FullStackWithLawrence/aws-openai/commit/9a2b00d903a8a6b097b52364b3fe4dd449cb165c))
16-
* add unit tests for common ([cf3ac81](https://github.com/FullStackWithLawrence/aws-openai/commit/cf3ac81e2c2db889f2bcaaa43365af92e0437ca6))
17-
* add unit tests for lambda_langchain ([4d94a87](https://github.com/FullStackWithLawrence/aws-openai/commit/4d94a875ea968dff85c48f6316fcd6ace5b31033))
18-
* add unit tests for lambda_openai_v2 ([1b1a2c9](https://github.com/FullStackWithLawrence/aws-openai/commit/1b1a2c9d24d834e06d2d747845d1562b826437e5))
19-
* refactor for OpenAI API v1 ([7fb6809](https://github.com/FullStackWithLawrence/aws-openai/commit/7fb6809a627eb8451af0054f24bd51bf3b52e07f))
20-
* run Python unit tests on all pushes ([4957f63](https://github.com/FullStackWithLawrence/aws-openai/commit/4957f63028058504c11249b1c01a6ca28dd2bce1))
9+
- add lists of .env and terraform.tfvars variables in use for settings ([ed64c74](https://github.com/FullStackWithLawrence/aws-openai/commit/ed64c74bfd7fdd7a99f684b5a22c65c1c1fc7a58))
10+
- add openai and langchain parameters to unit tests ([d19af9f](https://github.com/FullStackWithLawrence/aws-openai/commit/d19af9fa108df885f091e23057f38e15f1df9552))
11+
- add properties to report whether .env and/or terraform.tfvars files are in use ([5e3bea6](https://github.com/FullStackWithLawrence/aws-openai/commit/5e3bea603af3a9e96bb35ec601924edbe8e7d305))
12+
- add Settings class and refactor ([b9f0286](https://github.com/FullStackWithLawrence/aws-openai/commit/b9f028632622c5a81eeee7bc8b5fe920d72a5bed))
13+
- add unit test for langchain ([9a2b00d](https://github.com/FullStackWithLawrence/aws-openai/commit/9a2b00d903a8a6b097b52364b3fe4dd449cb165c))
14+
- add unit tests for common ([cf3ac81](https://github.com/FullStackWithLawrence/aws-openai/commit/cf3ac81e2c2db889f2bcaaa43365af92e0437ca6))
15+
- add unit tests for lambda_langchain ([4d94a87](https://github.com/FullStackWithLawrence/aws-openai/commit/4d94a875ea968dff85c48f6316fcd6ace5b31033))
16+
- add unit tests for lambda_openai_v2 ([1b1a2c9](https://github.com/FullStackWithLawrence/aws-openai/commit/1b1a2c9d24d834e06d2d747845d1562b826437e5))
17+
- refactor for OpenAI API v1 ([7fb6809](https://github.com/FullStackWithLawrence/aws-openai/commit/7fb6809a627eb8451af0054f24bd51bf3b52e07f))
18+
- run Python unit tests on all pushes ([4957f63](https://github.com/FullStackWithLawrence/aws-openai/commit/4957f63028058504c11249b1c01a6ca28dd2bce1))
2119

2220
# Change Log
2321

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# AWS Lambda Layer for OpenAI/Langchain Lambdas
22

3-
This layer contains the combined pip requirements for both lambda_langchain and lambda_openai.
3+
This layer contains the combined pip requirements for both lambda_langchain and lambda_openai_v2.

api/terraform/terraform.tfvars

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tags = {
1616
"project" = "OpenAI Code Samples"
1717
"contact" = "YOUR CONTACT INFORMATION GOES HERE."
1818
}
19-
aws_region = "us-east-1"
19+
aws_region = "us-east-1"
2020
# aws_profile = "default"
2121

2222
###############################################################################

pyproject.toml

-8
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,3 @@ exclude = '''
2525
| lambda_dist_pkg
2626
)/
2727
'''
28-
29-
[tool.flake8]
30-
ignore = "D205,D413,D400,D401"
31-
max-line-length =120
32-
max-complexity = 10
33-
exclude = "api/terraform/python/lambda_openai/venv, api/terraform/python/lambda_openai/lambda_dist_pkg, api/terraform/python/lambda_openai_v2/lambda_dist_pkg, api/terraform/python/lambda_langchain/lambda_dist_pkg"
34-
extend-exclude = "*__init__.py,*__version__.py,venv,lambda_dist_pkg"
35-
select = "C101"

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ skip_missing_interpreters = true
66

77
[tool.isort]
88
profile = "black"
9-
skip =venv,node_modules,api/terraform/python/lambda_openai/lambda_dist_pkg,api/terraform/python/lambda_openai/venv
9+
skip =venv,node_modules,api/terraform/python/layer_genai/venv
1010

1111
[gh-actions]
1212
python =

0 commit comments

Comments
 (0)