Giter Club home page Giter Club logo

flake8-numba's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Manuel, roboticist with interests in programming and Artificial Intelligence.
  • ๐ŸŒฑ Iโ€™m always learning about Python and C++, but recently added some knowledge in VIM and LUA.
  • ๐Ÿ’ž๏ธ I like collaborating in projects that ease the work of the developpers, by automatizing tasks and linting code.
  • ๐Ÿ“ซ Feel free to contact me! [email protected]

flake8-numba's People

Watchers

 avatar

flake8-numba's Issues

Support for first signature provided as string

In numba, first signature can also be defined as a string:

@guvectorize(["float64[:], float64[:], float64[:]"], '(n),(n)->(n)')
def func():
    ...

Right now these strings are not supported

Support `void(*types)` for `@guvectorize`

First positional argument for @guvectorize, in order to be more explicit, can be defined as:

void(int32, int32) instead of (int32, int32)

Right now only the second one is supported, but first one should also be

Rules to be implemented

For guvectorize and vectorize (NBA0XX):

  • [NBA001] Inconsistencies in first signature
  • [NBA002] Cast all constants with numba types
  • [NBA003] Not recognized kwarg in the decorator
  • [NBA004] ????
  • [NBA005] First positional argument and the signature of the function are not matching
  • [NBA006] Do not use decorator for bound methods
  • [NBA007] Expected list of tuples for the first argument

Specific for vectorize (NBA1XX):

  • [NBA101] Only one value can be returned (looking at return statement)
  • [NBA102] No return value was found

Specific for guvectorize (NBA2XX)

  • [NBA201] Signatures defined by the 2 positional arguments are not matching (different number of elements)
  • [NBA202] Signatures defined by the 2 positional argumenrs are not marching (same number but different sizes)
  • [NBA203] Symbol does not exist in second positional argument
  • [NBA204] Contstants re not allowed in second positional argument
  • [NBA205] Other return value than None is forbidden
  • [NBA206] Second positional argument has an open parenthesis
  • [NBA207] Second positional argumenr must be a str
  • [NBA208] Guvectorize needs two positional arguments
  • [NBA209] Output value(s) is not being set at any moment
  • [NBA210] Nested guvectorize functions are not supported
  • [NBA211] In second positional argument, parenthesis must be separated by commas
  • [NBA212] Do not overwrite input values (accesing arrays or in place modifications)

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.