smarkets / flake8-strict

Flake8 plugin that checks Python code against a set of opinionated style rules
MIT License
10 stars 8 forks source link

stdin not supported #3

Closed jayvdb closed 8 years ago

jayvdb commented 8 years ago

flake8 has a stdin mode, which isnt supported.

c:\python27\lib\site-packages\pep8-1.7.0-py2.7.egg\pep8.py:1521: in check_ast 
    for lineno, offset, text, check in checker.run(): 
c:\python27\lib\site-packages\flake8_strict.py:39: in run 
    errors = _process_file(self._filename) 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

filename = 'stdin' 

    def _process_file(filename): 
>       with open(filename, 'rt') as f: 
E       IOError: [Errno 2] No such file or directory: 'stdin'
jstasiak commented 8 years ago

@jayvdb This is fixed in master now (https://github.com/smarkets/flake8-strict/commit/3dbeac50e056ef11f11a1ce2671ff89cf61c43cb, pull request #2), will be released shortly.

jstasiak commented 8 years ago

So - "shortly" took longer than expected but the fix for this has just been released on PyPI in version 0.1.3.