Giter Site home page Giter Site logo

aleasoluciones / pydevlib Goto Github PK

View Code? Open in Web Editor NEW
0.0 15.0 1.0 85 KB

๐Ÿ› ๏ธ ๐Ÿ Alea Soluciones development utils & scripts meant to be used in Python projects

Shell 44.56% Python 55.44%
mamba pylint githook typechecker library python3 black formatter

pydevlib's Introduction

pydevlib

Python versions supported

Alea Soluciones' development utils & scripts meant to be used in Python 3 projects.

Requirements

You'll need bash as your shell.

Install

Simply run this on your virtualenv:

pip install -e git+https://github.com/aleasoluciones/pydevlib.git#egg=pydevlib

or add this to your requirements-dev.txt (recommended) to make it persistent:

-e git+https://github.com/aleasoluciones/pydevlib.git#egg=pydevlib

Usage

Once the module is installed, you can simply run

pydevlib

to list available commands. Actually, the commands list is:

mambo -> Alias for mamba -f documentation
git_hooks -> Install pre-commit and pre-push git hooks
linter -> Run pylint for production and specs code
type_checker -> Run MyPY for production and specs code to perform static type checking
formatter -> Run Black to format python code
focused_specs -> Search for focused specs across the code
unit_tests -> Run unit tests
factory_tests -> Run factory tests
integration_tests -> Run integration tests
functional_tests -> Run functional tests
acceptance_tests -> Run acceptance tests
regression_tests -> Run regression tests
fast_tests -> Run all fast tests (unit, factory and integration tests)
all_tests -> Run all tests but acceptance tests (unit, factory, integration and functional tests)

The way you can use the commands is simply like this:

git_hooks

For scripts that may accept arguments, you can do:

linter staged
formatter your_file another_file
unit_tests doc

Development

Simply clone this repository and run the following in a virtual environment:

dev/setup_venv.sh

TODO

  • Document virtualenv path to be searched is the default repository name
  • Document special script cases
  • Unify functional test across projects
  • Add a command to list the installed python development libraries with a link to documentation

pydevlib's People

Contributors

aebm avatar albertodelacruz avatar alex-arce avatar danibaena avatar luisddm avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

danibaena

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.