Skip to content

Commit 45857df

Browse files
committed
Updated linter python version adn docs
1 parent ad44e7a commit 45857df

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Steps:
133133
poetry env info
134134
```
135135
136-
3. Create an .env file and add environment variables
136+
3. Create an .env file and add environment variables.
137137
```
138138
AWS_PROFILE={your_profile}
139139
IMMUNIZATION_ENV=local
@@ -154,6 +154,14 @@ Steps:
154154
```
155155
Test if environment variables have been loaded into shell: `echo $IMMUNIZATION_ENV`.
156156
157+
### Setting up the root level environment
158+
The root-level virtual environment is primarily used for linting, as we create separate virtual environments for each folder that contains Lambda functions.
159+
Steps:
160+
1. Follow instructions above to [install dependencies](#install-dependencies) & [set up a virtual environment](#setting-up-a-virtual-environment-with-poetry).
161+
2. Run `make lint`. This will:
162+
- Check the linting of the API specification yaml.
163+
- Run Flake8 on all Python files in the repository, excluding files inside .venv and .terraform directories.
164+
157165
## IDE setup
158166
The current team uses VS Code mainly. So this setup is targeted towards VS code. If you use another IDE please add the documentation to set up workspaces here.
159167

azure/templates/deploy-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ parameters:
3434
default: true
3535
- name: python_version
3636
type: string
37-
default: "3.8"
37+
default: "3.10"
3838

3939
jobs:
4040
- job: deploy

0 commit comments

Comments
 (0)