Giter Club home page Giter Club logo

pepper8's People

Contributors

myth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pepper8's Issues

Can not install pepper8 when Jinja2 is not installed in setup time

$ pip install pepper8
Downloading/unpacking pepper8
  Downloading pepper8-1.0.4.tar.gz
  Running setup.py egg_info for package pepper8
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/build/pepper8/setup.py", line 6, in <module>
        from pepper8.main import VERSION
      File "pepper8/main.py", line 10, in <module>
        from pepper8.generator import HtmlGenerator
      File "pepper8/generator.py", line 8, in <module>
        from jinja2 import Template
    ImportError: No module named jinja2
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>
  File "/build/pepper8/setup.py", line 6, in <module>
    from pepper8.main import VERSION
  File "pepper8/main.py", line 10, in <module>
    from pepper8.generator import HtmlGenerator
  File "pepper8/generator.py", line 8, in <module>
    from jinja2 import Template

ImportError: No module named jinja2

----------------------------------------
Command python setup.py egg_info failed with error code 1

In other hand, the jinja2 install in same time with pepper8 isn't help.

pepper8 does not output HTML errors with the flake8-commas plugin

I have found a bug in the latest version of pepper8

  1. Install flake8-commas via pip install.
  2. Enable the errors by including C812 in a setup.cfg file, or with --select.
  3. Run flake8 to get text output.
  4. Run pepper8 on the output of flake8.

You will be able to see the standard flake8 warnings and errors in the HTML output, but not the output resulting from plugins, which are present in the text output.

Errors from some flake8 plugins are ignored

There are number of plugins producing errors which are not handled correctly. They have different issues, but I'll list them together:

  1. flake8-django
    Example: project/urls.py:115:5: DJ05 Missing namespace in urls include()
    Issue: plugin uses more than single letter + only 2 digits for code
  2. flake8-pydiatra (not yet in pip)
    Example: project/some.py:16:1: PYD016 Overlapping regexp ranges: 'A-z', '_'
    Issue: three-letter error code
  3. fake8-eradicate
    Example: project/some.py:218:2: E800: Found commented out code
    Issue: problem is that plugin outputs colon after error code

Here is what flake8 doc says about error codes:

Your entry point does not need to be exactly 4 characters as of Flake8 3.0. Consider using an entry point with 3 letters followed by 3 numbers (i.e. ABC123 ).

I understand that some of the above doesn't comply well with the above rule, but these plugins work and people are already using them and are most probably stick with those error codes, so I don't think it makes sense to change them. (# 3 is surely not the case.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.