Skip to main content

KVAKK Git Tools

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Poetry

Repo for sharing recommended git config and git scripts in Statistics Norway.

This repo should cover git config files for the production zone, Linux and Windows (Citrix and VDI), JupyterLab (Dapla and production zone), administrative zone and stand alone.

Initially the repo will contain a collection of git configurations for the different environments. But the aim is to make a common script, setting up the recommended git config for all SSB platforms, based on the detected environment.

Status

The ssb_gitconfig.py script works and is tested on the following platforms:

  • Dapla
  • Production zone, Linux (including Jupyter)
  • Production zone, Windows (Citrix)

Directories

The existing directory contains configurations collected from existing environments before any recommendations are implemented. The recommended directory contains the recommended config files for the different environments.

The ssb_gitconfig directory is the root directory for the script that should set the ssb recommended git config based on the detected environment. It is a work in progress and not finished yet.

Usage

Linux and Mac OS:

git clone https://github.com/statisticsnorway/kvakk-git-tools.git
kvakk-git-tools/kvakk_git_tools/ssb_gitconfig.py

Windows:

git clone https://github.com/statisticsnorway/kvakk-git-tools.git
python kvakk-git-tools\kvakk_git_tools\ssb_gitconfig.py

Developer guide

Initial setup

The Poetry tool is used for dependency management. Install poetry as described on the Poetry installation page, if not already installed. Then run the following commands in the cloned repo:

poetry install
poetry run pre-commit install

Source code requirements

  • The source code must support python version 3.6, because one of the supported platforms is based on RHEL 7.
  • It shall be possible to run the script from a plain python installation. That is: Don't use external libraries.
  • The source code shall run on these platforms: Linux, Windows and macOS.

Linting

You can do local linting with the following commands:

poetry run ruff check .

Bumping version

Use the bump-my-version tool with patch, minor or major. Examples:

poetry run bump-my-version bump patch  # 2.6.0 -> 2.6.1
poetry run bump-my-version bump minor  # 2.6.0 -> 2.7.0
poetry run bump-my-version bump major  # 2.6.0 -> 3.0.0

Building and releasing

An automatic release process will build kvakk-git-tools and release a new version of the package to either pypi.org or test.pypi.org automatically, when merging to the main branch.

If the version number is not changed, it is published to TestPyPI. If the version number is changed, it is published to PyPI.

Credits

This project was generated from Statistics Norway's SSB PyPI Template.

Metadata

Release files for kvakk-git-tools 2.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kvakk-git-tools 2.6.1
File Size Uploaded
kvakk_git_tools-2.6.1.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kvakk-git-tools 2.6.1
File Interpreter ABI Platform
kvakk_git_tools-2.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / kvakk_git_tools-2.6.1.tar.gz

Download URL kvakk_git_tools-2.6.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f791679a74e0148e96c4477e1aa42a2c35dcfbc69f2421d54ed3e9563ee4ce6a
BLAKE2b-256 checksum
How to use checksums
be26b0aae489eb8b6517c3219af9c3d69481a918ceea6f9991fa140f1c3c280d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / kvakk_git_tools-2.6.1-py3-none-any.whl

Download URL kvakk_git_tools-2.6.1-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
345a118c90719ca89cac0421c8ddb7faac4c5c6258495f8c41166b76b1df4d33
BLAKE2b-256 checksum
How to use checksums
a997098f0196b1977b1ae1adc1b0321ed50553eb8c69b57f385cb6a042823bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.6.1 This release

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page