Comments (6)
+1
from prospector.
Looks like it'd be a good addition. I started integrating it here. The problem I'm running into, though, is that it's incredibly sensitive when it's trying to parse __all__
. It fails on most all of my code, where I format it as:
__all__ = (
'something',
'something_else',
)
Until/Unless it gets better at parsing __all__
, I'm hesitant to recommend merging this in.
from prospector.
@jayclassless I've recently been adding support for 'optional tools' (this commit and this commit). So far I have added vulture and pyroma, both of which are not useful 100% of the time.
It depends how broken pep257 is, but if it's not reliable, it could perhaps still be added as an optional tool?
from prospector.
From the look of it, it could be related to this bug ticket they have open here. PyCQA/pydocstyle#78
@jayclassless Are you testing against the pypi package, or the code in github? If its the package, it sounds like it may be worth trying the code from the master branch in Github.
from prospector.
@techdragon I was using the latest release they've got on pypi. When I get a chance I'll try it against their master to see if it's something they've fixed. If it is, then maybe we can urge them to package up a release. If not, maybe I/we can take a shot at getting them a PR to fix it.
@carlio Yea, I saw that. I was wondering when the day would come when not every tool we added would automatically be dumped into the "default" list. :) I think in this case it'd depend on how much you want to stretch the meaning of "optional". Right now it basically means "working tools that don't apply to every type of Python project". IMO, to add pep257 at this point would stretch it to include the word "experimental".
from prospector.
I don't see it as a problem as long as the documentation clearly states that it is experimental or 'possibly broken'. Perhaps a new command line argument would be needed to print a short description of each tool and status.
from prospector.
Related Issues (20)
- [BUG] Mypy is described as experimental when it's now stable HOT 1
- [BUG] prospector2 won't install on Windows apparently since using forward slash instead of os.path.join HOT 1
- Prospector 1.10.2 does not support `with_mypy` optional tool [in conda] HOT 5
- [BUG] prospector fails when pyproject.toml contain multiple constraints dependencies
- [FEATURE REQUEST] MyPy check-untyped-defs option.
- [BUG] Incorrect additional_dependencies documentation to run prospector as a pre-commit hook with mypy support HOT 2
- [BUG] toml support is incomplete HOT 1
- [PKG SUPPORT] `pylint <3` and Python 3.12 HOT 11
- [PKG SUPPORT] changes for support of `flake >=6.0.0` (and Python 3.12, implicit) HOT 3
- [BUG] pre-commit hook fails on Python 3.12 because of deprecated pkg_resources HOT 3
- [BUG] False positive E231 error in pycodestyle HOT 3
- [BUG] Fatal error pylint: astroid-error HOT 1
- [FEATURE REQUEST] How to use `prospector` on a string
- [BUG] missing dependency: setuptools HOT 1
- [BUG] Crash with ValueError HOT 1
- [BUG] prospector fails with UnicodeDecodeError on requirements.txt having DOS (CRLF) line endings HOT 2
- [BUG] `prospector[with_pyroma]` not appearing to install pyroma when creating conda environments
- [FEATURE REQUEST] Baseline generation
- [BUG] Strange errors with python version 3.12.3
- [BUG] Python 3.12.2/4 - ModuleNotFoundError: No module named 'pkg_resources' 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 prospector.