Giter Club home page Giter Club logo

serg-delft / dslinter Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 8.0 1.22 MB

`dslinter` is a pylint plugin for linting data science and machine learning code. We plan to support the following Python libraries: TensorFlow, PyTorch, Scikit-Learn, Pandas and NumPy.

License: GNU General Public License v3.0

Python 99.94% Dockerfile 0.06%
code-smells linter lint python engineering machine-learning ai best-practices static-analysis artificial-intelligence

dslinter's People

Contributors

abelemm avatar ahawdy avatar deeeeksha avatar hynn01 avatar markhaakman avatar mayuri-dhote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dslinter's Issues

Report not written to file when using `from os import path`

I think there is a bug in the dslinter plugin.

Minimal example: minimal-example.zip

Steps to reproduce:

  • Unzip the minimal example
  • cd into the dslinter-test directory
  • run pipenv install --dev to install dslinter
  • run pipenv run pylint src --load-plugins dslinter --output-format=json:result.json

Expected beviour:

  • Two code smells written to the result.json file

Actual behaviour:

  • No content in the result.json file.

If you comment out the from os import path line it does write to the result.json file, so that is likely the cause. It's also not only the json format, but also the text format that shows this behaviour. When not enabling the dslinter plugin, it does write to the files.

Running it with the command of the steps to follow document does work, but we want to use all the checkers of pylint.

Refactor utils.type_inference.py

  • Since data-science-types stopped development, using mypy and data-science-types to infer pandas's type can sometimes cause error.
  • Currently inplace-pandas checker and unneccessary-iteration-pandas still use mypy and data-science-types to infer pandas's type.
  • We should probably look for a better solution for infering data science libraries' types.

Possibly remove pytest from required dependencies

Hi!

I have recently tried to install dslinter in a project where I was also using a version of pytest > 3.10.1 and pip install -r requirements.txt errors out because of dependency conflicts between the two.

As far as I can tell, pytest is used in dslinter purely as a testing library, and is not required for actually running the tool. Thus, would it be possible to remove pytest (and, possibly, pytest-cov) from pyproject.toml, such that other projects using dslinter are not limited in their choice of pytest version?

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.