Comments (8)
Yes, the PR to see the primer could be in @rhyn0 's fork. I approve the pipeline in pylint-dev/pylint
from time to time if it can help @rhyn0 to see the primer result faster/easier, though it does not mean we're going to add an extension, it should stay a plugin.
from pylint.
The code does not look too complicated, great plugin. You could add it to your fork of pylint as and extension and open a merge request to your main branch to see what's happening in the primers (numpy, pandas, pytest, etc. ). To likely find a bunch of false positives easily. We can add this to pylint-dev if you wish when it's ready.
from pylint.
Sounds like a nice idea for a third-party plugin. The plugin author can decide how to define "boolean function" -- analyze the return statements, the type annotation, what happens if two different things are returned, or there's an implicit None return...? etc.
from pylint.
I agree with Jacob, it rather complicated to specify and maintain and more suited to an (opinionated) plugin (or for a linter targeting a strongly typed language). If we add this to pylint we'll have to handle a lot of use case with a myriad of options because we want pylint to be one size fit all after configuration.
from pylint.
for anyone who does want something like this, I took a crack at it and built it here https://github.com/rhyn0/pylint-boolean-naming
Comments appreciated
from pylint.
@Pierre-Sassoulas I think you meant to suggest to add the repository to pylint-dev
right? Not in a PR like #9438
from pylint.
@Pierre-Sassoulas sorry about that, thanks for explaining your original message. And another thanks for the primer workflow stuff.
I'm unsure what the "merge into pylint-dev" looks like (organization forks my repo and then that becomes the source?) but I'll try to get the primer run to work first
from pylint.
No problems :) You can create a branch on your fork (rhyn0/fork-branch
) and open a merge request to your own main branch from your fork (rhyn0/main
) then the pipeline should work (provided the primer run once on the main branch). Happy to keep approving the pipeline on #9438 if you have issue with your fork setup.
from pylint.
Related Issues (20)
- Check for pylint pragmas in `__init__.py` HOT 2
- Non existent member not detected on datetime.datetime
- Check "__slots__" and "@dataclass" attributes HOT 9
- ERROR: Could not install packages due to an OSError HOT 1
- Add a dynamic URL to the message documentation in the message descriptions from checkers HOT 12
- Using truethy coroutine in if-clause should trigger a warning HOT 5
- cannot disable checks right after "else:" HOT 1
- Changing the number of function arguments when using a decorator does not work. HOT 2
- Document the setting of the ``sys/PYTHONPATH`` in our doc and on a popular stackoverflow answer HOT 2
- Detect useless copy/deepcopy HOT 1
- Proposal: ignore concrete linting warnings via GUI, e.g. via QuickFix in VSCode HOT 2
- Misleading documentation for "protected-access / W0212" HOT 8
- False negative for used-before-assignment and unused-argument when used in inner function without nonlocal HOT 4
- Pylint failed to detect undefined variable value HOT 1
- [unsubscriptable-object] False Positive on Optional list HOT 1
- Streamlit page with ChatBot Langchain and Bedrock HOT 1
- Missing timeout for requests.Session object? HOT 1
- False positive for missing-kwoa (E1125) on inherited dataclasses with kw_only=True HOT 2
- [no-value-for-parameter] False negative when calling `super().__init__()` with non-self argument HOT 1
- PyLint reports "no assignment is done" but variable is changed in the scope of the procedure HOT 4
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 pylint.