Giter Site home page Giter Site logo

new_project_template's Introduction

Python Application Template

build status

This is a minimal Python 3 application with automated tests using pytest, Coverage.py and GitHub Actions. It also provides pre-commit hooks (for Black, reorder_python_imports, Flake8 and Mypy) and automated Docker image storage via GitHub Packages. It was developed by the Imperial College Research Computing Service for the Essential Software Engineering for Researchers course.

To use this repository as a template for your own application:

  1. Click the green "Use this template" button above

  2. Name and create your repository

  3. Clone your new repository and make it your working directory

  4. Set up a virtual environment:

    # Either using venv:
    python3 -m venv .venv
    source .venv/bin/activate  # or `.venv\Scripts\activate.bat` if you're using Windows
    python -m pip install -U pip
    python -m pip install -U -r requirements-dev.txt
    
    # Or using conda:
    conda env create --name my_application --file requirements-dev.txt python=3
    conda activate my_application
  5. Install the git hooks:

    pre-commit install
  6. Run the tests:

    python -m pytest
  7. Edit/replace fibonacci.py, test_fibonacci.py, setup.cfg and ci.yml as required

Notes:

  • For a more comprehensive project template consistent with many Research Software Engineering best practices please consider using this Python Template from our colleagues at the Netherlands eScience Center.
  • GitHub Packages does not currently (08/2020) support unauthenticated pull access and is therefore not a drop-in replacement for Docker Hub.

new_project_template's People

Contributors

gopikaops avatar

Stargazers

Kyle J. Hazelwood avatar

Watchers

 avatar Rich Neswold avatar Beau Harrison 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.