Skip to content

Commit

Permalink
Force static-analysis to run using python 3.11
Browse files Browse the repository at this point in the history
Using 3.12 causes flake8 to incorrectly error on text inside of f-strings for rules E226,E231,E241,E702
  • Loading branch information
MHendricks committed Nov 3, 2023
1 parent f3fc168 commit 3be6eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-static-analysis-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
# NOTE: Currently running this with python 3.12 causes
# flake8 false-positives on lines with f-strings E226,E231,E241,E702
python-version: "3.11"

- name: Install dependencies
run: |
Expand All @@ -49,7 +51,7 @@ jobs:
# Test if using native json or pyjson5 for json parsing
json_ver: ['json', 'json5']
os: ['ubuntu-latest', 'windows-latest']
python: ['3.7', '3.8', '3.9', '3.10']
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
# Works around the depreciation of python 3.6 for ubuntu
# https://github.com/actions/setup-python/issues/544
include:
Expand Down

0 comments on commit 3be6eb9

Please sign in to comment.