{"id":23125103,"url":"https://github.com/statisticsnorway/kvakk-git-tools","last_synced_at":"2026-04-22T08:02:45.958Z","repository":{"id":37866759,"uuid":"475860100","full_name":"statisticsnorway/kvakk-git-tools","owner":"statisticsnorway","description":"Repo for sharing recommended git config and git scripts in Statistics Norway","archived":false,"fork":false,"pushed_at":"2025-04-04T11:13:36.000Z","size":352,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-07-09T09:57:53.441Z","etag":null,"topics":["git","pypi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statisticsnorway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-30T12:04:25.000Z","updated_at":"2025-04-04T11:13:37.000Z","dependencies_parsed_at":"2024-02-19T11:29:29.207Z","dependency_job_id":"ada62f28-6602-4a12-a3ae-d52a69942c51","html_url":"https://github.com/statisticsnorway/kvakk-git-tools","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/statisticsnorway/kvakk-git-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statisticsnorway%2Fkvakk-git-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statisticsnorway%2Fkvakk-git-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statisticsnorway%2Fkvakk-git-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statisticsnorway%2Fkvakk-git-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statisticsnorway","download_url":"https://codeload.github.com/statisticsnorway/kvakk-git-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statisticsnorway%2Fkvakk-git-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270802999,"owners_count":24648682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","pypi"],"created_at":"2024-12-17T08:12:33.177Z","updated_at":"2026-04-22T08:02:45.953Z","avatar_url":"https://github.com/statisticsnorway.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KVAKK Git Tools\n\n[![PyPI](https://img.shields.io/pypi/v/kvakk-git-tools.svg)][pypi status]\n[![Status](https://img.shields.io/pypi/status/kvakk-git-tools.svg)][pypi status]\n[![Python Version](https://img.shields.io/pypi/pyversions/kvakk-git-tools)][pypi status]\n[![License](https://img.shields.io/pypi/l/kvakk-git-tools)][license]\n\n[![Documentation](https://github.com/statisticsnorway/kvakk-git-tools/actions/workflows/docs.yml/badge.svg)][documentation]\n[![Tests](https://github.com/statisticsnorway/kvakk-git-tools/actions/workflows/tests.yml/badge.svg)][tests]\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_kvakk-git-tools\u0026metric=coverage)][sonarcov]\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_kvakk-git-tools\u0026metric=alert_status)][sonarquality]\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)][pre-commit]\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]\n\n[pypi status]: https://pypi.org/project/kvakk-git-tools/\n[documentation]: https://statisticsnorway.github.io/kvakk-git-tools\n[tests]: https://github.com/statisticsnorway/kvakk-git-tools/actions?workflow=Tests\n[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_kvakk-git-tools\n[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_kvakk-git-tools\n[pre-commit]: https://github.com/pre-commit/pre-commit\n[black]: https://github.com/psf/black\n[poetry]: https://python-poetry.org/\n\nRepo for sharing recommended git config and git scripts in Statistics Norway.\n\nThis repo should cover git config files for the production zone, Linux\nand Windows (Citrix and VDI), JupyterLab (Dapla and production zone),\nadministrative zone and stand alone.\n\nInitially the repo will contain a collection of git configurations for the different\nenvironments. But the aim is to make a common script, setting up the recommended\ngit config for all SSB platforms, based on the detected environment.\n\n## Status\n\nThe `ssb_gitconfig.py` script works and is tested on the following platforms:\n\n- Dapla\n- Production zone, Linux (including Jupyter)\n- Production zone, Windows (Citrix)\n\n## Directories\n\nThe `existing` directory contains configurations collected from existing environments\nbefore any recommendations are implemented. The `recommended` directory contains the\nrecommended config files for the different environments.\n\nThe `ssb_gitconfig` directory is the root directory for the script that should\nset the ssb recommended git config based on the detected environment. It is a\nwork in progress and not finished yet.\n\n## Usage\n\nLinux and Mac OS:\n\n```shell\ngit clone https://github.com/statisticsnorway/kvakk-git-tools.git\nkvakk-git-tools/kvakk_git_tools/ssb_gitconfig.py\n```\n\nWindows:\n\n```shell\ngit clone https://github.com/statisticsnorway/kvakk-git-tools.git\npython kvakk-git-tools\\kvakk_git_tools\\ssb_gitconfig.py\n```\n\n## Developer guide\n\n### Initial setup\n\nThe Poetry tool is used for dependency management. Install poetry as described on the\n[Poetry installation page](https://python-poetry.org/docs/#installation), if not\nalready installed. Then run the following commands in the cloned repo:\n\n```shell\npoetry install\npoetry run pre-commit install\n```\n\n### Source code requirements\n\n- The source code must support python version 3.6, because one of the supported platforms\n  is based on RHEL 7.\n- It shall be possible to run the script from a plain python installation. That is:\n  Don't use external libraries.\n- The source code shall run on these platforms: Linux, Windows and macOS.\n\n### Linting\n\nYou can do local linting with the following commands:\n\n```shell\npoetry run ruff check .\n```\n\n### Bumping version\n\nJust change the version number in `pyproject.toml` to the new version number.\nOr use the command `poetry version` followed by `major`, `minor` or `patch`.\n\n### Building and releasing\n\nAn 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.\n\nIf the version number is *not* changed, it is published to TestPyPI.\nIf the version number *is* changed, it is published to PyPI.\n\n\n## Credits\n\nThis project was generated from [Statistics Norway]'s [SSB PyPI Template].\n\n[statistics norway]: https://www.ssb.no/en\n[pypi]: https://pypi.org/\n[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate\n[file an issue]: https://github.com/statisticsnorway/kvakk-git-tools/issues\n[pip]: https://pip.pypa.io/\n\n\u003c!-- github-only --\u003e\n\n[license]: https://github.com/statisticsnorway/kvakk-git-tools/blob/main/LICENSE\n[contributor guide]: https://github.com/statisticsnorway/kvakk-git-tools/blob/main/CONTRIBUTING.md\n[reference guide]: https://statisticsnorway.github.io/kvakk-git-tools/reference.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatisticsnorway%2Fkvakk-git-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatisticsnorway%2Fkvakk-git-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatisticsnorway%2Fkvakk-git-tools/lists"}