Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
pritchyspritch committed May 16, 2024
1 parent 59a7933 commit 93eb87e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
with:
python-version: '3.x'

- name: flake8 Lint
uses: py-actions/flake8@v2

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion dfe_threagile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def temp_file_read() -> list:
# temp: I want to prove we can run threagile in multiple ways in GitHub Actions before the feature is built
try:
file = open("/app/work/test-data.json", "r")
except FileNotFoundError as e:
except FileNotFoundError:
print(
"test-data.json file not found, this file is for testing purposes - automated Azure resource collection feature not yet implemented."
)
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
extend-ignore = E501
exclude = .git,__pycache__,venv/
exclude = .git,__pycache__,venv/
plugins = "flake8-black"

0 comments on commit 93eb87e

Please sign in to comment.