Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: pre-commit

on:
pull_request:
push:
branches: ["main"]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install ruff
run: pip install ruff
- name: Get pre-commit
uses: pre-commit/action@v3.0.0
- name: Run pre-commit
run: pre-commit run --all-files
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
- id: ruff
- id: ruff-format
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
Plottery is a simple python script to compare the same distribution for different files and bunches of files.
It has been developed using Python 3.9.6.
Plottery reads TTree into root files and saves the plots in a PDF format.

8 changes: 4 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Lumi: 139.
Normalise: False
SelectionCuts: 'foam==0.5 and (njets>=5 and nbjets>=4)==0'
TreeName: 'nominal_Loose'
Processes:
File:
Processes:
File:
- 'mc16[a-d-e]_nom/410470_user*'
- 'mc16[a-d-e]_nom/41123[3-4]*_AFII*'
- 'mc16[a-d-e]_nom/41211[6-7]*_AFII*'
Name:
Name:
- 'ttbar PP8'
- 'ttbar PH7'
- 'ttbar aH7'
Selection:
Selection:
- '' #and HF_SimpleClassification == 0'
- '' #and HF_SimpleClassification == 0'
- '' #and HF_SimpleClassification == 0'
Expand Down
Loading