Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add pylintrc file for github super linter

Rolandc54f23b9dcd8
diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml
new file mode 100644
index 000000000..ddfa1fe60
--- /dev/null
+++ b/.github/linters/.eslintrc.yml
@@ -0,0 +1,28 @@
+{
+ "extends": "airbnb-base",
+ "env": {
+ "browser": true,
+ "jquery": true
+ },
+ "globals": {
+ "d3": true,
+ "MozActivity": true,
+ "Sortable": true,
+ "tinyMCE": true,
+ "MG": true
+ },
+ "rules": {
+ "func-names": [
+ "error",
+ "never"
+ ],
+ "no-unused-vars": [
+ 2,
+ {
+ "vars": "all",
+ "varsIgnorePattern": "^wger"
+ }
+ ],
+ "no-console": "off"
+ }
+}
diff --git a/.github/linters/.python-lint b/.github/linters/.python-lint
new file mode 100644
index 000000000..a77bdfdd4
--- /dev/null
+++ b/.github/linters/.python-lint
@@ -0,0 +1,9 @@
+[MASTER]
+ignore=tests,migrations
+
+[MESSAGES CONTROL]
+
+# Disable the 'unable to import'-error. Due to the way pylinter is run via
+# docker, it can't import django and some wger modules. This is ok though,
+# since we have the tests and would catch this.
+disable=E0401,R0801