Giter Site home page Giter Site logo

Run flake8 about shablona HOT 6 OPEN

uwescience avatar uwescience commented on June 28, 2024
Run flake8

from shablona.

Comments (6)

jesford avatar jesford commented on June 28, 2024

flake8 is awesome!

However, I was not able to run it using the command provided in the README:

flake8 --ignore N802,N806 `find . -name *.py | grep -v setup.py | grep -v /doc/`

and also not when removing the (unintentional?) extra backticks:

flake8 --ignore N802,N806 find . -name *.py | grep -v setup.py | grep -v /doc/

It gives me this error:

Usage: flake8 [options] input ...

flake8: error: no such option: -n

But it runs fine if I just do this:

flake8 --ignore N802,N806 *.py | grep -v setup.py | grep -v /doc/

Not sure if its a typo in the README (I'm happy to submit a PR if so) or if its just me...

Thanks for this resource @arokem! Super helpful.

from shablona.

arokem avatar arokem commented on June 28, 2024

Just a guess here: should that be a -- before the name (two dashes
instead of one)?

On Wed, Feb 10, 2016 at 7:06 PM, Jes Ford [email protected] wrote:

flake8 is awesome!

However, I was not able to run it using the command provided in the README:

flake8 --ignore N802,N806 find . -name *.py | grep -v setup.py | grep -v /doc/

and also not when removing the (unintentional?) extra backticks:

flake8 --ignore N802,N806 find . -name *.py | grep -v setup.py | grep -v /doc/

It gives me this error:

Usage: flake8 [options] input ...

flake8: error: no such option: -n

But it runs fine if I just do this:

flake8 --ignore N802,N806 *.py | grep -v setup.py | grep -v /doc/

Not sure if its a typo in the README (I'm happy to submit a PR if so) or
if its just me...

Thanks for this resource @arokem https://github.com/arokem! Super
helpful.


Reply to this email directly or view it on GitHub
#11 (comment).

from shablona.

jesford avatar jesford commented on June 28, 2024

No, that gives me the same error. Does it work for you?

from shablona.

arokem avatar arokem commented on June 28, 2024

Sorry - was really just guessing.

This does work for me (but might not work inside the Travis setup -- I
think that's what the README refers to?)

flake8 --ignore N802,N806 shablona/*.py

(issued from the top level repo directory).

On Wed, Feb 10, 2016 at 7:14 PM, Jes Ford [email protected] wrote:

No, that gives me the same error. Does it work for you?


Reply to this email directly or view it on GitHub
#11 (comment).

from shablona.

rbiswas4 avatar rbiswas4 commented on June 28, 2024

Hi Jes,

Escaping the * might work:

find . -name _.py should probably be
find . -name _.py

The backticks are meant to run the find command and locate the *.py within
directories and then run flake 8 on that list. So, I think you could simply
run the flake8 command on an explicit file list to see if it is the flake8
command that is a problem or building the list of files.

Thanks,
Rahul

On Wed, Feb 10, 2016 at 7:22 PM, Ariel Rokem [email protected]
wrote:

Sorry - was really just guessing.

This does work for me (but might not work inside the Travis setup -- I
think that's what the README refers to?)

flake8 --ignore N802,N806 shablona/*.py

(issued from the top level repo directory).

On Wed, Feb 10, 2016 at 7:14 PM, Jes Ford [email protected]
wrote:

No, that gives me the same error. Does it work for you?


Reply to this email directly or view it on GitHub
<#11 (comment)
.


Reply to this email directly or view it on GitHub
#11 (comment).

from shablona.

jesford avatar jesford commented on June 28, 2024

Thanks @rbiswas4 that works perfect!

from shablona.

Related Issues (20)

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.