Git Product home page Git Product logo

Comments (10)

lyz-code avatar lyz-code commented on June 28, 2024 1

The --config-file flag is available since 0.10.0, thanks @HoverHell ! :)

I see now what you mean, and it makes sense too. The loading of the variables would be in order of preference:

  • pyproject.toml of the repository
  • Global config in ~/.config/autoimport/config.toml
  • Autoimport defaults.

I'm closing #170 as it no longer applies. But if you want to make a PR with the global config, I'll be happy to merge it

from autoimport.

lyz-code avatar lyz-code commented on June 28, 2024 1

Available since 1.2.0 thanks to @Jasha10 who did a PR based on the work of @HoverHell and the awesome maison library by @dbatten5

from autoimport.

lyz-code avatar lyz-code commented on June 28, 2024

Hi @HoverHell , thank you for taking the time to open an issue. Recently @Jasha10 added support for local configuration, it has been documented here, please take a look and tell me if this will fulfill your use case

from autoimport.

HoverHell avatar HoverHell commented on June 28, 2024

I can work around it, with a wrapper like this: https://gist.github.com/HoverHell/b479c566960d91284999f60969bc30f1

However, at the very least that would require config path argument (e.g. #171 )

from autoimport.

lyz-code avatar lyz-code commented on June 28, 2024

Adding the --config-file flag makes sense, but sorry, I still don't understand why would you need a wrapper. Can you help me understand what's missing in the current implementation?

If we add the --config-file may I close the other PR you created?

from autoimport.

HoverHell avatar HoverHell commented on June 28, 2024

why would you need a wrapper

It's still missing a global (home-dir) config.

may I close the other PR you created

yes

from autoimport.

Jasha10 avatar Jasha10 commented on June 28, 2024

+1 for a --config-file flag :)

from autoimport.

Jasha10 avatar Jasha10 commented on June 28, 2024

@HoverHell, by a global (home-dir) config, you mean something like $HOME/.autoimport.toml?

from autoimport.

HoverHell avatar HoverHell commented on June 28, 2024

from autoimport.

HoverHell avatar HoverHell commented on June 28, 2024

PR with the global config

-> #172

from autoimport.

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.