klaasnicolaas / github-config

Centralised config for all my GitHub repos 🛠️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Config

A centralized place for config files used in many GitHub repositories 🛠️

Why?

If you have a lot of repositories, a small adjustment becomes a huge job to update this everywhere. This process is partly automated with this approach and in the end you only have work on merging the pull requests.

How it works

  • Common config files are kept in this repository
  • When a release is published in this repo, the Repo File Sync action is triggered
  • PR's are raised in the target repos with the changes, defined in sync.yml

Setting up development environment

This Python project is fully managed using the Poetry dependency manager.

You need at least:

Install all packages, including all development requirements:

poetry install

This project will be installed in non-package mode.

Poetry creates by default an virtual environment where it installs all necessary pip packages, to enter or exit the venv run the following commands:

poetry shell
exit

Setup the pre-commit check, you must run this inside the virtual environment:

pre-commit install

Now you're all set to get started!

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

About

Centralised config for all my GitHub repos 🛠️

License:MIT License