Git Product home page Git Product logo

Comments (8)

Pierre-Sassoulas avatar Pierre-Sassoulas commented on June 23, 2024 2

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.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on June 23, 2024 1

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.

jacobtylerwalls avatar jacobtylerwalls commented on June 23, 2024

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.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on June 23, 2024

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.

rhyn0 avatar rhyn0 commented on June 23, 2024

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.

DanielNoord avatar DanielNoord commented on June 23, 2024

@Pierre-Sassoulas I think you meant to suggest to add the repository to pylint-dev right? Not in a PR like #9438

from pylint.

rhyn0 avatar rhyn0 commented on June 23, 2024

@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.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.