Skip to content

Commit

Permalink
Merge pull request #4 from q-solution/python12
Browse files Browse the repository at this point in the history
Omit pylint from Prospector tools until v3 is supported
  • Loading branch information
paulschwarzenberger authored Jan 27, 2024
2 parents efd00d1 + 04cf38d commit 61a342e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- name: Prospector
run: |
prospector --no-autodetect
prospector tests
# don't use pylint until prospector supports pylint 3.x, required for Python 3.12
prospector modules/terraform-aws-ca-lambda --without-tool pylint
- name: prepare reports dir
run: mkdir --parents ${{runner.temp}}/reports_sast_python/
Expand Down
10 changes: 7 additions & 3 deletions modules/terraform-aws-ca-lambda/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
* Deploys AWS Lambda functions forming part of serverless CA solution
* Submodule of terraform-aws-ca

## Local Python development - Windows
## Local Python development
* create virtual environment
```powershell
```bash
cd modules\terraform-aws-ca-lambda
python -m venv .venv
```
* activate virtual environment on Windows
* activate virtual environment (Linux / MacOS)
```bash
source .venv/bin/activate
```
* activate virtual environment (Windows)
```powershell
.venv\Scripts\Activate
```
Expand Down
2 changes: 1 addition & 1 deletion modules/terraform-aws-ca-lambda/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
boto3==1.20.24
black==22.10.0
cryptography==41.0.6
prospector==1.9.0
prospector==1.10.3
bandit==1.7.5
pyOpenSSL==23.2
requests==2.31.0
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ black==22.10.0
cryptography == 41.0.7
asn1crypto == 1.5.1
certvalidator == 0.11.1
prospector==1.9.0
prospector==1.10.3
bandit==1.7.5
pytest==7.4.4
validators==0.22.0
Expand Down

0 comments on commit 61a342e

Please sign in to comment.