Skip to content
Snippets Groups Projects
Select Git revision
  • 929248670d87a239245f5c8e136bf4bc3dbae9c8
  • master default protected
  • set_hba_element_power
  • L2SS-2199-apply-dab-to-xy
  • L2SS-2417-more-vector-memory
  • test-pytango-10.0.3
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
41 results

pre-commit.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    pre-commit.sh 622 B
    #!/bin/bash
    
    if [ ! -f "setup.sh" ]; then
      echo "pre-commit.sh must be executed with repository root as working directory!"
      exit 1
    fi
    
    pip install pre-commit
    pre-commit install --hook-type pre-push
    
    # --allow-missing-config: Allows the installation to proceed
    # even if the configuration file is missing, and hooks won't be executed
    # without a configuration file.
    #
    # e.g. switching between branches who might have or not have pre-push config
    # files result in no annoying messages
    
    # To uninstall pre-commit:
    #
    # pre-commit uninstall
    # pip uninstall pre-commit
    #
    # You might want to remove also '.git/hooks/pre-push'