Giter Site home page Giter Site logo

python-backend's Introduction

python-backend

Project with python and other tools

Tools:

Virtual Lenv - A tool for creating isolated virtual python environments.

Install: pip install virtualenv instal packages in a virtual environment using pip and venv: py -m venv .venv (windows) python3 -m venv .venv (unix/macos) This will create a separate environment from my machine to run python :) To active the virtual environment: .venv\Scripts\activate (windows) source .venv/bin/activate (unix/macos) The terminal is now inside the venv folder, working only with it and not with python on the computer!!

Pylint - Pylint is a powerful tool for ensuring the quality of your Python code.

install: pip install pylint (read the documentation) To create a config for modification: pylint --generate-rcfile > .pylintrc

One way to commit is for pylint to identify files that don't comply with Pylint standards🔗https://pre-commit.com/#intro A framework for managing and maintaining multi-language pre-commit hooks, It will tie to Git to perform actions (hooks). To install: pip install pre-commit create a file named .pre-commit-config.yaml paste: repos:

  • repo: local hooks:
    • id: pylint name: pylint entry: pylint language: system types: [python] args: [ "-rn", # Only display messages "-sn", # Don't display the source "--rcfile=.pylintrc", # Link to your config file "--load-plugins=pylint.extensions.docparams", # Load an extension ]

run pre-commit install to set up the git hook scripts

Manager versions of the tools:

.venv/Scripts/pip freeze > requirements.txt (windows) .venv/bin/pip freeze > requirements.txt (unix/macos)

That's the step by step for initial Settings

python-backend's People

Contributors

nicholetzs avatar

Watchers

 avatar

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.