Git Product home page Git Product logo

Comments (5)

diegoaldarondo avatar diegoaldarondo commented on August 16, 2024

Almost done with this.
Would you mind if we started using a linter? It makes it easier to keep track of file dependencies. I like flake8, but we can use any one you want.

from dannce.

spoonsso avatar spoonsso commented on August 16, 2024

from dannce.

spoonsso avatar spoonsso commented on August 16, 2024

from dannce.

diegoaldarondo avatar diegoaldarondo commented on August 16, 2024

Yeah, it's usually done through your editor. I like Atom because its real pretty and supports a lot of extensions, including linters. It should also be supported in other common editors, like sublime, pycharm, spyder, etc. but I've never set a linter up for those.

Here's a snippet I use to setup the Atom editor and linter, as well as a python autocompleter (it can be tricky to get the autocomplete to work sometimes). I used it for Ubuntu 18.04, but I think it should also work for 16.04. I think the only requirements is pip.

# Set up Atom editor
sudo wget -O atom-amd64.deb https://atom.io/download/deb
sudo apt install gdebi-core
sudo gdebi atom-amd64.deb
rm atom-amd64.deb

# Install the flake8 linter and python autocomplete Atom packages
pip install flake8
apm install linter
apm install linter-flake8
pip install flake8-docstrings
apm install autocomplete-python

After that just navigate through the editor to packages and make sure that the python path for flake8 is pointing to your system python (you can also set it up to point to whichever python is active in your environment, but I find this to be simpler). Here is the linter-flake8 page with instructions on how to do that if you want to, as well as more detailed setup instructions than the ones I gave.

from dannce.

spoonsso avatar spoonsso commented on August 16, 2024

Looks great! Thanks

from dannce.

Related Issues (20)

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.