aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar martmists <[email protected]>2018-02-03 16:41:49 +0100
committerGravatar martmists <[email protected]>2018-02-03 16:41:49 +0100
commit87779f893dc2e6b4649518b99834130a97d2307c (patch)
treeddbabf030e03c4d4fd1ebc8afc679952218b931b
parentFirst test commit w/ travis (diff)
Lint better
Signed-off-by: martmists <[email protected]>
-rw-r--r--.snekrc22
-rw-r--r--.travis.yml4
-rw-r--r--requirements-ci.txt14
3 files changed, 34 insertions, 6 deletions
diff --git a/.snekrc b/.snekrc
index 860f30b6..24a408ce 100644
--- a/.snekrc
+++ b/.snekrc
@@ -1,8 +1,22 @@
[all]
-linters = flake8, isort
+linters = flake8, isort, yapf, safety, dodgy, vulture
[flake8]
-max-line-length = 79
-exclude=venv
+max-line-length=100
-[isort] \ No newline at end of file
+[isort]
+line_length=100
+indent=' '
+multi_line_output=0
+length_sort=1
+use_parentheses=true
+sections=sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
+import_heading_stdlib=Stdlib
+import_heading_thirdparty=External Libraries
+import_heading_firstparty=Snekchek
+force_sort_within_sections=true
+
+[vulture]
+min-confidence=60
+
+[style]
diff --git a/.travis.yml b/.travis.yml
index 9e9dd9ef..e13a3334 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ python:
install:
- pip install -r requirements.txt
- - pip install snekchek flake8 yapf isort
+ - pip install -r requirements-ci.txt
script:
- "curl https://api.beardfist.com/pythondiscord -H \"token: $AUTODEPLOY_TOKEN\""
- - snekchek \ No newline at end of file
+ - snekchek
diff --git a/requirements-ci.txt b/requirements-ci.txt
new file mode 100644
index 00000000..de64a7b1
--- /dev/null
+++ b/requirements-ci.txt
@@ -0,0 +1,14 @@
+snekchek
+flake8
+flake8-bugbear
+flake8-bandit
+flake8-import-order
+flake8-tidy-imports
+flake8-todo
+flake8-string-format
+isort
+yapf
+safety
+dodgy
+vulture
+