diff --git a/.github/workflows/build-and-push-docker-image.yaml b/.github/workflows/build-and-push-docker-image.yaml index 29d96fe..5348d79 100644 --- a/.github/workflows/build-and-push-docker-image.yaml +++ b/.github/workflows/build-and-push-docker-image.yaml @@ -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 diff --git a/dfe_threagile.py b/dfe_threagile.py index 389130d..aca6692 100644 --- a/dfe_threagile.py +++ b/dfe_threagile.py @@ -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." ) diff --git a/setup.cfg b/setup.cfg index 2fdf660..271ead0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,4 @@ [flake8] extend-ignore = E501 -exclude = .git,__pycache__,venv/ \ No newline at end of file +exclude = .git,__pycache__,venv/ +plugins = "flake8-black" \ No newline at end of file