-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move built-in styles to a separate repo to start a shared/community library of styles #482
Comments
Continuing here the discussion from #331 (comment):
That's good feedback. I was thinking of the built-in styles as a shared library of "building blocks" where people can:
Oh, I also wasn't aware of that. I can solve this by creating 2 separate styles, something like:
Agreed, that's sensible.
To have releases and automated tests of I could also rely exclusively on Git tags. On the other hand, the I'm a bit on the fence.
Yes, that would be great. As I mentioned, I tried to provide a "library" so people wouldn't start their styles from scratch. At the same time, giving developers the freedom to choose which styles to use or not (like with the line length mentioned above). @mjpieters thanks for the valuable input so far. 🙏🏻 |
I do see the advantages of being able to version and package styles, and a Python package has the advantages of being a known entity that plays in the same ecosystem. The downside is that a custom style needs to be installed separately. We currently have everyone install nitpick globally (e.g. with That's a lot more overhead than the simpler And it is perfectly possible to structure your HTTPS target to have a version too; e.g. All in all it means that I like to keep both options for this. |
Problem
As a developer, I want to be able to use my own styles so I'm not forced to adopt Nitpick's default styles.
At the same time, I'd like to contribute some of my styles to a Nitpick library that can be reused by other developers.
The default styles currently live as resources within the Nipick package itself.
From #331 (comment):
Possible solution
nitpick-styles
Python packagetests/test_builtin
directory and all its automated tests of styles to the new repoThe text was updated successfully, but these errors were encountered: