-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unexpected behavior (or misunderstanding) of nitpick quickstart steps #138
Comments
After some trial and error and following the auto-detection docs, here where the results i got after running the flake8 command
|
Hi @tolusonaike. Indeed, the documentation doesn't say anything about an empty project. Turns out that I will add this information to the quick start. Thanks for pointing it. |
Not only that, currently, it only recognizes setup.py , app.py, and autoapp.py . Other py files throw a NIP102: No Python file was found under the root dir |
I am facing similar issue. In the beginning, I was using this wonderful tool as usual, but out of sudden, Weird thing is that when I tried on my another project which uses setup.py, I can get complaints even after removing |
Hi @joegnis, thanks for the report.
Could you run Example output for the problem reported by @tolusonaike:
|
Unfortunately, I can't reproduce the issue now. Everything looks good even after I check out to the commit on that day (Mar. 19). It might be related to the Python environment that time. Anyway, I am posting my project structure for any future reference.
|
# [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 issue has been resolved in version 0.22.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hi - this seemed like the most appropriate place to ask since I'm sure it's just a configuration but I'm also unclear on the quickstart.
flake8 is running fine but
If I create As a side note - I found this part of the setup really unclear. https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/nitpick.html#project-repository Thanks folks! EDIT:
|
Hey @Phil-Barber,
Nitpick is (for now) a You should see
This documentation page is from WeMake, not from Nitpick... 😄
No, it's one or the other. I hope that helps. |
Thanks for the reply @andreoliwa - Apologies for the misunderstanding, that's really cleared things up :) |
Not sure i misunderstood the out-of-the-box behavior of nitpick or there is a bug. I except that nitpick should report missing files when ran inside an empty project folder, and the default style file should be downloaded
Expected Behavior
In a folder, with poetry, pyproject.toml, and venv setup, install nitpick and run flake8:
Current Behavior
In an empty folder, while running in a venv, install nitpick and run flake8:
Possible Solution
Not sure if this is the correct behavior or my misinterpretation of nitpick's functionality/docs
Steps to Reproduce
Your Environment
nitpick
version used:0.21.3Python version: 3.7
Operating System and version: macos
Run the following commands and paste the output:
Python 3.7.3
attrs==19.3.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
dictdiffer==0.8.1
entrypoints==0.3
flake8==3.7.9
idna==2.8
jmespath==0.9.4
marshmallow==3.4.0
marshmallow-polyfield==5.8
mccabe==0.6.1
nitpick==0.21.3
pycodestyle==2.5.0
pyflakes==2.1.1
python-slugify==4.0.0
requests==2.22.0
ruamel.yaml==0.16.10
ruamel.yaml.clib==0.2.0
sortedcontainers==2.1.0
text-unidecode==1.3
toml==0.10.0
urllib3==1.25.8
#~/.asdf/installs/python/3.7.3/bin/python3.7
-- coding: utf-8 --
import re
import sys
from flake8.main.cli import main
if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])
sys.exit(main())
The text was updated successfully, but these errors were encountered: