From 5164723350215ba92ae3b610d1aa082e7f2c25b1 Mon Sep 17 00:00:00 2001 From: viperior Date: Fri, 25 Feb 2022 14:58:19 -0800 Subject: [PATCH] Enforce Flake8 Rules Modify the GitHub Actions workflow to remove the option, --exit-zero, from the flake8 call so that detected errors will halt the build Modify the line length to 100 characters Closes #11 --- .github/workflows/python-app.yml | 2 +- CHANGELOG.md | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 225aed3..6f9363e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,7 +26,7 @@ jobs: # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --max-complexity=10 --max-line-length=100 --statistics - name: Test with pytest (quick) run: | pytest -v -x -n auto diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c850d..b9a1906 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [0.6.0](https://github.com/viperior/python-project-template/tree/v0.6.0) (2022-02-25) + +### Improvements + +* Enforce Flake8 Rules (closes [#11][i11]) +* Modify max code line length to 100 characters in `flake8` command + +[i11]: https://github.com/viperior/python-project-template/issues/11 + ## [0.5.0](https://github.com/viperior/python-project-template/tree/v0.5.0) (2022-02-25) ### Improvements