Self hosted FLOSS fitness/workout, nutrition and weight tracker
Activate flake8 linter
Roland Geiderd81b822ff1c6
diff --git a/.github/linters/.flake8 b/.github/linters/.flake8new file mode 100644index 000000000..283cd04e9--- /dev/null+++ b/.github/linters/.flake8@@ -0,0 +1,19 @@+[flake8]+# H101: Use TODO(NAME)+# W503: line break before binary operator+ignore = H101,W503+max-line-length = 100+exclude =+ extras,+ build,+ dist,+ node_modules,+ migrations,+ settings.py,+ docs,+ **/urls.py : E501+ **/config/apps.py : F401+ **/core/apps.py : F401+ **/exercises/apps.py : F401+ **/gym/apps.py : F401+ **/manager/apps.py : F401diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.ymlindex 1d19d0c3a..cbc3ba535 100644--- a/.github/workflows/linter.yml+++ b/.github/workflows/linter.yml@@ -46,15 +46,10 @@ jobs:# Run Linter against code base #################################- name: Lint Code Base- uses: docker://github/super-linter:v3.4.0+ uses: docker://github/super-linter:v3.5.1env:- # Note: python was removed from validation because there seemed to- # be a problem with custom pylintrc files. If this bug is solved,- # python linting can be activated again (obviously!)- VALIDATE_PYTHON: false-- # When setting a single validation option, all others are set to- # false. So re-enable all the languages sed in the project.+ VALIDATE_PYTHON_FLAKE8: true+ PYTHON_FLAKE8_CONFIG_FILE:VALIDATE_MD: trueVALIDATE_JAVASCRIPT_ES: trueVALIDATE_JSON: truediff --git a/setup.cfg b/setup.cfgindex 07f84f4b5..89eb06e58 100644--- a/setup.cfg+++ b/setup.cfg@@ -1,26 +1,6 @@[bdist_wheel]universal = 1-[flake8]-# H101: Use TODO(NAME)-# W503: line break before binary operator-ignore = H101,W503-max-line-length = 100-exclude =- extras,- build,- dist,- node_modules,- migrations,- settings.py,- docs,- **/urls.py : E501- **/config/apps.py : F401- **/core/apps.py : F401- **/exercises/apps.py : F401- **/gym/apps.py : F401- **/manager/apps.py : F401-[isort]sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDERskip: extras,build,dist,node_modules,migrations,docs,settings.py