Coder Social home page Coder Social logo

Comments (3)

Silleellie avatar Silleellie commented on August 28, 2024 1

Hello, thank you for opening this issue. I will look into it and update you as soon as I can :)

from pylint-github-action.

Silleellie avatar Silleellie commented on August 28, 2024

Hey, sorry for the late response! The issue is that the package-path parameter in your GA points to the root of the repository, which is not a package since there's no __init__.py file. So you can solve this in two ways:

  • You can simply specify as package-path the python file to lint (which seems main.py in your case)
  • Or you can put your main.py file in a package (create a new directory with the __init__.py file) and put the path to this newly created package as value to the package-path parameter

I'm realizing that maybe "package-path" is an unfortunate name for the parameter, and maybe I should change it to "lint-path" and update the documentation for your case (which is a valid one). In the meantime, please try one of the two solutions provided and let me know!

from pylint-github-action.

Silleellie avatar Silleellie commented on August 28, 2024

Hey, now this issue is fully solved as the new v2 release of this github action better documents the behaviour of linting single python files.
Feel free to reopen this issue if something's wrong!

from pylint-github-action.

Related Issues (1)

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.