Skip to content

par-tec/python-cookiecutter

Repository files navigation

Python Cookiecutter repository

Python template repository including boilerplate workflows and CI.

.bandit.yaml
.pre-commit-config.yaml
.github
└── workflows

Creating a new project

The name of a new project should be descriptive and short. The repository name should be in kebab-case, string, e.g., python-cookiecutter, api-onboarding. Avoid CamelCase or underscores: you can use them for OOP classes or properties.

Contributing

Please, see CONTRIBUTING.md for more details on:

Using this repository

You can create new projects starting from this repository, so you can use a consistent CI and checks for different projects.

Besides all the explanations in the CONTRIBUTING.md file, you can use the docker-compose file (e.g. if you prefer to use docker instead of installing the tools locally)

docker-compose run pre-commit

Testing github actions

Tune the Github pipelines in .github/workflows.

To speed up the development, you can test the pipeline with act. Installing act is beyond the scope of this document.

To test the pipeline locally and ensure that secrets (e.g., service accounts and other credentials) are correctly configured, use:

# Run a specific job in the pipeline
act -j test -s CI_API_TOKEN="$(cat gh-ci.json)" \
     -s CI_ACCOUNT=my-secret-account

About

Repository for boilerplate workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages