Coder Social home page Coder Social logo

limeaid's People

Contributors

pking70 avatar privacyengineer avatar sumabh-msft avatar sumanbhagavathula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

limeaid's Issues

Issue with linter for including PATH insert statements before other module imports

The project has several modules in the MVC folder structures. During development and unit testing it was found that the import statement for the modules from different directories does not work unless we include statement to insert the path to the modules. However, the caveat is that these insert statement and the corresponding import sys statement need to be present before the statement to import the project modules from other directories. This violates the styling principles of having import statements at the beginning of the file and having import statements in alphabetical order. This is caught by linter as well, and we had to suppress it by applying a linter hint to ignore the relevant error message for this specific case.

An example below, taken from LIME_Education_Ex.py. As you can see from below, we had to import sys and include statements to insert the MVC folder paths into PATH environment variable with the sys.path.insert command. And the actual required import statement(s) is after the "extra" import and insert statements.

import sys
sys.path.insert(0, '../LIMEaid/LIMEaid/controller')
sys.path.insert(0, '../LIMEaid/LIMEaid/model')
sys.path.insert(0, '../LIMEaid/LIMEaid/view')
import fit_sklearn_models as fsm

The workaround is in travis.yml file on line 37, NOTE the ignore switch and the argument value.
flake8 LIMEaid --ignore=E402

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.