Commit 48b68b8d authored by Dennis Noll's avatar Dennis Noll
Browse files

Merge branch 'master' of git.rwth-aachen.de:3pia/cms_analyses/common

parents 04701e42 df3c460d
fail_fast: true
exclude: '^(config/campaigns/|bbbb/|bbww_dl/|bbww_sl/|jet_tagging_sf/|jtsf/|tools/|vh/|wh/|zh/)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
args: [--line-length=100, --diff, --check]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
......@@ -2,6 +2,15 @@
### Infos on git
##### Install pre-commit hooks
```
pip install pre-commit # or brew install pre-commit on macOS
pre-commit install # Will install a pre-commit hook into the git repo
```
##### `[user]` config
Make sure to have your name and email as registered at CERN in the `.git/config` of the cloned repository. Example:
......@@ -33,5 +42,5 @@ once.
### Fix Kerberos ticket and open ssh connection
1. `ssh -o exit lxplus`
2. `dhi_law.sh --help` (triggers `kinit`)
1. `ssh -o exit lxplus`
2. `dhi_law.sh --help` (triggers `kinit`)
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
multi_line_output = 3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment