diff --git a/.gitignore b/.gitignore index a4889d1..080cb6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ tab* +.tox diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..e688987 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6 +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..a513197 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,35 @@ +- repo: git://github.com/pre-commit/pre-commit-hooks.git + sha: 6b1aa19425b35f8c34f43ada8f1045b028dc19a5 + hooks: + - id: autopep8-wrapper + args: + - --in-place + - --aggressive + - --aggressive + - --max-line-length=131 + - id: check-ast + - id: check-case-conflict + - id: check-docstring-first + - id: check-json + files: \.(jshintrc|json)$ + - id: debug-statements + - id: double-quote-string-fixer + - id: end-of-file-fixer + - id: fix-encoding-pragma + - id: flake8 + args: + - --max-line-length=131 + - --ignore=E126,E128,E731 + - id: pretty-format-json + args: + - --autofix + - --indent + - '4' + - id: requirements-txt-fixer + - id: trailing-whitespace +- repo: git://github.com/pre-commit/mirrors-jshint + sha: 431358a85a3084cb86d731f2cd46490ec04f5c69 + hooks: + - id: jshint + args: + - --config=.jshintrc diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..be6473c --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: pre-commit clean test + +pre-commit: + @tox -e pre-commit -- install -f --install-hooks + +test: pre-commit + @tox -e pre-commit -- run --all-files + @tox + +clean: + @rm -fr .tox + @find . -name '*.py[co]' -delete + @find . -name '__pycache__' -delete diff --git a/README.md b/README.md index ef4dda0..40925d1 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,3 @@ # THIS. GUY. FUCKS. - diff --git a/src/lib/hello_world.c b/src/lib/hello_world.c index 198d4c4..f996bd2 100644 --- a/src/lib/hello_world.c +++ b/src/lib/hello_world.c @@ -25,12 +25,12 @@ Z, Z, 58 ,Z ,6 +4 ,Z Z,3,Z,5,Z, 6,Z,Z,Z,Z, Z, 6, Z,58,Z,5,Z ,-3,x,4,Z, y, 4, y, Z, 6, Z, 6, Z, Z, Z, 4, Z, 4, Z,6 +4 ,Z ,5 -,Z ,- 3, x, 5 ,Z,4,Z,3+4 ,4 +6 +,Z ,- 3, x, 5 ,Z,4,Z,3+4 ,4 +6 ,Z, Z, 6, Z,Z,58,Z ,9,},u=44* 5,c=45-3; main(i ,j ){ -for( i= x; i< u; i= i+ y, c= c^ (4+ 6) +for( i= x; i< u; i= i+ y, c= c^ (4+ 6) ){ if (s [i ]< x) {q (" #* () ;p =" "+ 43 ,+ ") ;} else{for(j =x ;j <(s[i]&(9+ 6)); -j= j+ 1) p( c) ;} }} q( f) {p (5 +j= j+ 1) p( c) ;} }} q( f) {p (5 +5 );}; f( a, b, t) {" if (u >t )" -;} p(f ){ ;printf( "%c",f,"f" );345689? 3: 4; }; \ No newline at end of file +;} p(f ){ ;printf( "%c",f,"f" );345689? 3: 4; }; diff --git a/tabs.js b/tabs.js index c367854..b1833c0 100644 --- a/tabs.js +++ b/tabs.js @@ -1,5 +1,7 @@ -'use strict'; -let spaces = true; -while (spaces) { - console.log('SPACES FOREVER! <3'); -} +(function () { + 'use strict'; + let spaces = true; + while (spaces) { + console.log('SPACES FOREVER! <3'); + } +}()); diff --git a/tabs.py b/tabs.py index eee2d32..5129dd8 100644 --- a/tabs.py +++ b/tabs.py @@ -1,4 +1,8 @@ -from myModule import someTabs +# -*- coding: utf-8 -*- +from __future__ import absolute_import +from __future__ import unicode_literals + +from myModule import someTabs # noqa for x in range(100): - print "BWAHAHAHAHAHAHA" \ No newline at end of file + print 'BWAHAHAHAHAHAHA' diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..2429b9b --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py27,py35 +skipsdist = true + +[testenv:pre-commit] +deps = + pre-commit +commands = + pre-commit {posargs}