Code Monkey home page Code Monkey logo

Comments (3)

isac322 avatar isac322 commented on June 6, 2024 1

Hi @andreoliwa ,
Thanks for replying.
Currently we use remote style URL. But still I want to distribute both custom flake8 rules and nitpick style at the same time. (So I include nitpick style within package as resource). Because we want to use versioning for consistency.
But currently I have to specify version on two places. One on requirements.txt for custom plugin, one on pyproject.toml for nitpick. So it would be good if nitpick can read style file from a python package. To remove duplicated versioning and to avoid human error!
Thanks

from nitpick.

andreoliwa avatar andreoliwa commented on June 6, 2024

Hi @isac322, sorry for not replying earlier.

But because nitpick only accept pure file path

Did you try relative file paths for the style files?

We have company wide flake8 rules and I want to share tool configurations across those projects with the flake8 rules

Why can't you use a remote URL with your shared style?
Check the docs:

You can set style with any local file or URL. E.g.: you can use the raw URL of a GitHub Gist.

Something like this on pyproject.toml:

[tool.nitpick]
style = ["https://raw.githubusercontent.com/your-company/<your-shared-project-with-configs/your-branch/nitpick-style.toml"]

Maybe the docs are not clear to explain this situation, I can improve them.

from nitpick.

github-actions avatar github-actions commented on June 6, 2024

🎉 This issue has been resolved in version 0.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from nitpick.

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.