Skip to content

Instantly share code, notes, and snippets.

@krikulis
Created September 20, 2012 19:18
Show Gist options
  • Save krikulis/3757793 to your computer and use it in GitHub Desktop.
Save krikulis/3757793 to your computer and use it in GitHub Desktop.
PyFlakes does not check line length :))
# checking that we violate pep8 line numbers and pyflakes does not complain
(test)kristaps@dev:~/src/crawler/content$ pip freeze | grep pyflakes
pyflakes==0.5.0
(test)kristaps@dev:~/src/crawler/content$ cat models.py | pyflakes
(test)kristaps@dev:~/src/crawler/content$ wc -L models.py
184 models.py
#checking that pyflakes source codez does not contain reference to 80 | 79 line numbers
(test)kristaps@dev:/tmp$ wget https://launchpadlibrarian.net/79102431/pyflakes-0.5.0.tar.gz
--2012-09-20 22:12:56-- https://launchpadlibrarian.net/79102431/pyflakes-0.5.0.tar.gz
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17635 (17K) [application/x-tar]
Saving to: `pyflakes-0.5.0.tar.gz'
100%[===========================================================================================================================================================================>] 17,635 --.-K/s in 0.07s
2012-09-20 22:12:57 (260 KB/s) - `pyflakes-0.5.0.tar.gz' saved [17635/17635]
(test)kristaps@dev:/tmp$ tar xzf pyflakes-0.5.0.tar.gz
(test)kristaps@dev:/tmp$ cd ./pyflakes-0.5.0/
(test)kristaps@dev:/tmp/pyflakes-0.5.0$ grep -ri 79 ./*
(test)kristaps@dev:/tmp/pyflakes-0.5.0$ grep -ri 80 ./*
(test)kristaps@dev:/tmp/pyflakes-0.5.0$ grep -ri length ./*
(test)kristaps@dev:/tmp/pyflakes-0.5.0$ grep -ri pep8 ./*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment