Comments (6)
I think we should do three things:
- Unify the version of Pylint (2.11.1) (in
requirements/dev.txt
) - Make sure that all pylint command use
pylint howdoi *.py --rcfile=.pylintrc
(insetup.py
and.pre-commit-config.yaml
and.github/workflows/python-non-master.yml
and.github/workflows/python.yml
) - Pin the version of pylint used by the github action (
.github/workflows/python-non-master.yml
and.github/workflows/python.yml
)
from howdoi.
Two options here - we can uninstall pylint
globally or use the virtual environment's python to run pylint.
Let's try the latter first.
For me, I can find my local python with which python
» which python
/Users/gleitz/.virtualenvs/howdoi/bin/python
Then I can run pylint using this local version of python
» python -m pylint howdoi *.py --rcfile=.pylintrc
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
This should avoid the import-errors.
from howdoi.
The pre-commit
is configured to use pylint 2.8.2
which does not give error but pylint 2.11.1
gives the error. You can try it by running pylint howdoi --rcfile=.pylintrc
.
Can you check the output of which pylint
to see if it from your virtual environment or the global one?
from howdoi.
These are import errors given by Pylint (2.11.1) upon running pylint howdoi *.py --rcfile=.pylintrc
and upon running python3 setup.py lint
it only checks the howdoi directory
Development Environment
from howdoi.
It's strange that it's mostly import errors - it's almost as if Pylint is not using the virtual environment or something like that.
from howdoi.
It's strange that it's mostly import errors - it's almost as if Pylint is not using the virtual environment or something like that.
Upon checking which pylint
in the development environment, it is not considering the virtual environment on my system.
from howdoi.
Related Issues (20)
- Sanity check failing HOT 2
- Cant Print out the colors in Powershell Or CMD Terminal HOT 19
- update version on macports HOT 1
- pip install -r requirements.txt crashes due to pathlib on python 3.10.2 HOT 1
- Can't print non-ascii text to windows terminal HOT 3
- pickle.UnpicklingError: the STRING opcode argument must be quoted HOT 4
- Add flag to enable paging / choose pager HOT 3
- Is the tracking parameter t=hj in the duckduckgo URL intentional? HOT 7
- Function `_format_url_to_filename` only used in tests HOT 2
- Error in command `howdoi print in python` HOT 3
- Add checks when it comes to something like `range` HOT 2
- Not installable in python3.5 HOT 3
- Change pull request template "Pull request Type" to checklist HOT 2
- Add page cache to .gitignore HOT 1
- fresh install, stuck at 1.1.9 HOT 4
- Fetch Bing- Chat-GPT HOT 2
- Add method to detect symbols like +, /, etc. in the queries HOT 7
- ERROR: Sorry, couldn't find any help with that topic (use --explain to learn why) HOT 8
- GPT Implementation?
- 403 forbiddeb HOT 2
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 howdoi.