Comments (3)
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.
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.
🎉 This issue has been resolved in version 0.28.0 🎉
The release is available on:
v0.28.0
- GitHub release
Your semantic-release bot 📦🚀
from nitpick.
Related Issues (20)
- Falsy values not properly compared
- Nitpick should fail when no style is explicitly configured HOT 2
- pre-commit list keys are incomplete
- Can't configure `.flake8` comma separated value HOT 2
- Support comments in JSON configuration (aka JSONC) HOT 4
- No module named 'requests_cache.cache_control' HOT 1
- pre-commit hook should be runnable on manual hook stages HOT 3
- [docs] Explain how to make the linter know that a file is of INI format HOT 2
- [doc] Branch reference syntax is imperfect HOT 1
- contains_json with `false` doesn't work HOT 1
- Support GitHub Enterprise Server HOT 4
- Running nitpick with flakeheaven 3.2.1 results in warnings
- Pre-commit hook is incompatible with requests_cache==1.0 HOT 1
- Allow Github Apps Access Tokens in Github URLs HOT 1
- Request: sample config for `toml-sort` HOT 4
- Docs request: `github` remote style looking in subfolder
- Request: controlling `pre-commit` tab size (2 spaces vs 4 spaces) HOT 1
- `nitpick` removes YAML document start HOT 1
- Can't use remote style on Azure DevOps
- "AttributeError: 'Project' object has no attribute '_confirmed_root'" when running nitpick init in an empty directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nitpick.