Giter VIP home page Giter VIP logo

Comments (21)

fsouza avatar fsouza commented on July 2, 2024 1

@myint hi there! If I were to take on this change, would you accept a patch? I can build on #37 or start from scratch, whatever works better (haven't investigated what will be simpler yet).

from autoflake.

myint avatar myint commented on July 2, 2024 1

I see. That sounds reasonable then. Welcome aboard!

from autoflake.

alok avatar alok commented on July 2, 2024

I'd also be very happy to see this implemented.

from autoflake.

myint avatar myint commented on July 2, 2024

I think this is a reasonable request. I've done this in various other tools. For example, see:

https://github.com/myint/docformatter/blob/7a23f89a8bcfb117db2f388c6706d28e9bb30e9c/docformatter.py#L593-L626

from autoflake.

alok avatar alok commented on July 2, 2024

Implemented it. See the PR.

from autoflake.

brupelo avatar brupelo commented on July 2, 2024

@myint Steven, hi. What happened finally to this feature? I'd be very happy to use it on a SublimeText plugin but i don't see it living on the latest autoflake 1.2 after doing pip install --upgrade autoflake.

Autoflake is an awesome tool and reading from stdin is supported by many python linters out there, so it'd be great to have it as well here.

For example, autopep8... test it on windows is as easy as just doing echo a=1+2 | autopep8 --ignore=IGNORE -.

Please let me know. Tyvm

from autoflake.

brupelo avatar brupelo commented on July 2, 2024

Is this repo still alive? Here's a little example how to achieve the task:

from autoflake.

myint avatar myint commented on July 2, 2024

@brupelo Please see #37 (comment).

from autoflake.

brupelo avatar brupelo commented on July 2, 2024

Almost all python linters out there support this and if - conflicts with another option the right call is just warning about it (see for instance how isort does it as an example), not having this standard common operation on autoflake doesn't make sense. A linter tool should be a tool to be used not only on the command line but also should allow to interact with the IDE itself.

from autoflake.

myint avatar myint commented on July 2, 2024

I'm not arguing against the - feature. 😄

Merely doing it in the right way, which I specified in the pull request. I would do it myself if I wasn't doing 12 hour days at work.

from autoflake.

Yevgnen avatar Yevgnen commented on July 2, 2024

Any news?

from autoflake.

w0rp avatar w0rp commented on July 2, 2024

If there was news, you'd see a comment here. ;)

from autoflake.

metopa avatar metopa commented on July 2, 2024

@fsouza Hi, why you PR was declined?

from autoflake.

fsouza avatar fsouza commented on July 2, 2024

@fsouza Hi, why you PR was declined?

Oh, this was from before the repo was moved to pycqa and I thought it was kind of abandoned. It wasn't declined, I just closed it. Happy to reopen it if the repo is active again.

from autoflake.

metopa avatar metopa commented on July 2, 2024

Looks like it is abandoned indeed, which is unfortunate :(

from autoflake.

fsouza avatar fsouza commented on July 2, 2024

With the move to PyCQA maybe it'll be picked up again? I did fork it here and have some plans for it, but if pycqa will move it forward I'm happy to abandon autoflake8 and focus on the work here.

from autoflake.

myint avatar myint commented on July 2, 2024

@fsouza Would you be interested in becoming a maintainer of this repository?

from autoflake.

fsouza avatar fsouza commented on July 2, 2024

@fsouza Would you be interested in becoming a maintainer of this repository?

Hey @myint, thank you very much for creating autoflake and apologies for the delayed response, I was on paternity leave and very slow to respond. Do you have details on what maintaining it would entail? (something along the lines of reviewing PRs, triaging issues, creating new releases? Anything else?) Are there other maintainers? Like, would there be someone to review my PRs too? 🙈

from autoflake.

myint avatar myint commented on July 2, 2024

Maintaining would entail reviewing, triaging, and creating releases as you suggest. There are currently no other maintainers, but ideally there would be.

I just took a look at https://github.com/fsouza/autoflake8, and one slightly worrying thing I notice is there is over ten dependencies in the fork whereas autoflake in this repository only depends on pyflakes. I try to keep dependencies minimal in autoflake.

from autoflake.

fsouza avatar fsouza commented on July 2, 2024

Users of autoflake8 still only have 1 dependency (pyflakes). The other dependencies are used only to develop autoflake8. It's basically pytest and aiofiles, and both are used for running tests/in tests.

That being said, I don't think we need to bring autoflake8 as is. We can keep the current approach and port the improvements without necessarily pushing it to poetry, changing how the code is organized or how tests are executed.

from autoflake.

fsouza avatar fsouza commented on July 2, 2024

Sounds good! I'll reopen my PR adding stdin and stdout, and if CI is happy I'll merge it! I'll also move CI to GH Actions.

from autoflake.

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.