-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Offline mode #129
Offline mode #129
Conversation
Hello again! I don't know about the But I agree with a better error message when a I've been thinking of a solution for a while:
Would a caching solution like this work for you? |
It would, only if I had a connection, but don't have right now. Imagine, that you are writing a new project and copy-pasting an existing nitpick configuration. Considering I like clean solutions more 🙂 |
This would be a neat feature! @sobolevn How do you invoke We embed it in our pre-commit hook and so passing arguments to it implies changing the hook configuration. Not acceptable for us. Though when run as a pre-commit hook, one can simply use Regarding caching, I created a new feature (#130) request as I believe it is an orthogonal idea. |
I use |
Thank you guys for sharing your ideas and how you invoke Nitpick.
You're right, I tried using it and it raises errors. Here are my suggested specs:
Does that work for you? |
Sounds like a plan! 👍 P.S. |
Signed-off-by: Augusto W. Andreoli <andreoliwa@gmail.com>
Signed-off-by: Augusto Wagner Andreoli <andreoliwa@gmail.com>
Signed-off-by: Augusto Wagner Andreoli <andreoliwa@gmail.com>
Signed-off-by: Augusto W. Andreoli <andreoliwa@gmail.com>
Signed-off-by: Augusto W. Andreoli <andreoliwa@gmail.com>
@sobolevn @bibz it's ready. Would you like to review it officially, or can I just merge and release?
I chose to display a message on stderr if there is a connection error instead. |
@andreoliwa thanks a lot! Two questions (I am not very familiar with the codebase to figure this out):
|
Signed-off-by: Augusto Wagner Andreoli <andreoliwa@gmail.com>
Hi @sobolevn,
Yes. There was a bug 😬, but I added tests for this situation and now it is working.
There is a "merged style file", rebuilt on every execution: all the style files are gathered and joined into a single TOML file inside the |
Awesome work 🎉 Thanks a lot for this project. P.S. We also building an awesome |
# [0.22.0](v0.21.4...v0.22.0) (2020-03-26) ### Bug Fixes * consider any Python file (thanks [@tolusonaike](https://github.com/tolusonaike)) ([55c0965](55c0965)), closes [#138](#138) * remove setup.py (thanks [@sobolevn](https://github.com/sobolevn) and [@bibz](https://github.com/bibz)) ([5d03744](5d03744)) ### Features * add flag for offline mode ([#129](#129)) ([3650575](3650575))
🎉 This PR is included in version 0.22.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
[@sobolevn wrote this originally.
I used
hub pull-request --draft -i 129 -b andreoliwa:master -h andreoliwa:offline-mode
, and then it replaced the description... 😐 ]Hi!
I faced an issue with running
nitpick
while offline.That's what it shows:
I guess that there two things to be improved:
--offline
flag to skipnitpick
check--offline
flag because it seems that your network is unreachable. Or fix your connection."What do you think?