Tidak Ada Deskripsi

Casper van der Wel e80e10d95b Generate project using cookiecutter template 1 tahun lalu
.github e80e10d95b Generate project using cookiecutter template 1 tahun lalu
clean_python e80e10d95b Generate project using cookiecutter template 1 tahun lalu
.coveragerc e80e10d95b Generate project using cookiecutter template 1 tahun lalu
.cruft.json e80e10d95b Generate project using cookiecutter template 1 tahun lalu
.gitignore e80e10d95b Generate project using cookiecutter template 1 tahun lalu
.pre-commit-config.yaml e80e10d95b Generate project using cookiecutter template 1 tahun lalu
CHANGES.md e80e10d95b Generate project using cookiecutter template 1 tahun lalu
LICENSE e80e10d95b Generate project using cookiecutter template 1 tahun lalu
MANIFEST.in e80e10d95b Generate project using cookiecutter template 1 tahun lalu
README.md e80e10d95b Generate project using cookiecutter template 1 tahun lalu
pyproject.toml e80e10d95b Generate project using cookiecutter template 1 tahun lalu
setup.cfg e80e10d95b Generate project using cookiecutter template 1 tahun lalu

README.md

clean-python

Introduction

Usage, etc.

Installation

We can be installed with:

$ pip install clean-python

(TODO: after the first release has been made)

Development installation of this project itself

We use python's build-in "virtualenv" to get a nice isolated directory. You only need to run this once:

$ python3 -m venv .

A virtualenv puts its commands in the bin directory. So bin/pip, bin/pytest, etc. Set up the dependencies like this:

$ bin/pip install -e .[test]

There will be a script you can run like this:

$ bin/run-clean-python

It runs the main() function in [clean-python/scripts.py, adjust that if necessary. The script is configured in TODO, MISSING NOW (see entry_points).

In order to get nicely formatted python files without having to spend manual work on it, get pre-commit and install it on this project:

$ pre-commit install

Run the tests regularly with coverage:

$ bin/pytest --cov

The tests are also run automatically on "github actions" for "main" and for pull requests. So don't just make a branch, but turn it into a pull request right away. On your pull request page, you also automatically get the feedback from the automated tests.

If you need a new dependency (like requests), add it in pyproject.toml in dependencies. And update your local install with:

$ bin/pip install -e .[test]

Steps to do after generating with cookiecutter

  • Add a new project on https://github.com/nens/ with the same name. Think about the visibility to ("public" / "private") and do not generate a license or readme.

Note: "public" means "don't put customer data or sample data with real persons' addresses on github"!

  • Follow the steps you then see (from "git init" to "git push origin main") and your code will be online.

  • Go to https://github.com/nens/>clean-python/settings/collaboration and add the teams with write access (you might have to ask someone with admin rights (like Reinout) to do it).

  • Update this readme.

  • Remove this section as you've done it all :-)