Git Product home page Git Product logo

smart-google's People

Contributors

datic0 avatar deepsourcebot avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

smart-google's Issues

(PYL-R1705) Unnecessary `else` / `elif` used after `return`

Description

The use of else or elif becomes redundant and can be dropped if the last statement under the leading if / elif block is a return statement. In the case of an elif after return, it can be written as a separate if block. For else blocks after return, the …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/PYL-R1705/occurrences/

(PYL-W0622) Re-definition found for builtin function

Description

Defining a local variable or function with the same name as a built-in object makes the built-in object unusable within the current scope and makes the code prone to bugs.

for input in body['inputs']:
    for device in input['payload']['devices']:

(FLK-E722) Do not use bare `except`, specify exception instead

Description

Using except without a specific exception can be error prone.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/FLK-E722/occurrences/

26    try:
27        print('Try to replace NewLine Exception')
28        data['private_key'] = data['private_key'].replace('\\n', '\n')
29    except:
30        print('Nothing to replace')
31
32    print('DICTIONARY Generated')

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.