Giter Site home page Giter Site logo

florisabrams / python-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pmareke/python-boilerplate

0.0 0.0 0.0 87 KB

This repository is a Python boilerplate to be used as a fast starter point

License: MIT License

Shell 9.73% Python 14.36% Makefile 67.77% Dockerfile 8.13%

python-boilerplate's Introduction

Python Boilerplate status

  • This repository is meant to be used as a fast starter point.
  • The Python version is the 3.10.
  • The project runs inside Docker using docker-compose.
  • The project has configured a Github Action which runs on every push to the main branch.

Requirements

  • You only need to have Docker installed.

Folder structure

  • There is a tests folder with the tests files.
    • In order to add new tests please follow the pytest recommendations.
  • The production code goes inside the src folder.
  • Inside the scripts folder you can find the git hooks files.

Project commands

The project uses Makefiles to run the most common tasks:

  • help : Shows this help.
  • local-setup: Sets up the local environment (e.g. install git hooks).
  • build: Builds the app.
  • update: Updates the app packages.
  • install package=XXX: Installs the package XXX in the app, ex: make install package=requests.
  • run: Runs the app.
  • check-typing: Runs a static analyzer over the code in order to find issues.
  • check-format: Checks the code format.
  • check-style: Checks the code style.
  • reformat: Formats the code.
  • test: Run all the tests.

Important: Please run the make local-setup command before starting with the code.

In order to create a commit you have to pass the pre-commit phase which runs the check and test commands.

Packages

This project uses Poetry as the package manager.

Testing

  • pytest: Testing runner.
  • pytest-xdist: Pytest plugin to run the tests in parallel.
  • doublex: Powerful test doubles framework for Python.
  • expects: An expressive and extensible TDD/BDD assertion library for Python..
  • doublex-expects: A matchers library for the Expects assertion librar.

Code style

  • mypy: A static type checker.
  • yapf: A Pyhton formatter.
  • ruff: An extremely fast Python linter, written in Rust..

Contributors

Special thanks to:

python-boilerplate's People

Contributors

pmareke avatar alexlopezc 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.