Skip to content
Open
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
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: "data/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -16,13 +16,13 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: "24.10.0"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "26.3.1"
hooks:
- id: black

- repo: https://github.com/hadialqattan/pycln
rev: "v2.4.0"
rev: "v2.6.0"
hooks:
- id: pycln

Expand All @@ -34,19 +34,19 @@ repos:
# additional_dependencies: [flake8-bugbear]

- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
rev: "8.0.1"
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/asottile/pyupgrade
rev: "v3.19.1"
rev: "v3.21.2"
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
rev: "v2.4.2"
hooks:
- id: codespell
args: ["-L", "sur,nd"]
Expand All @@ -63,7 +63,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.10.0.1"
rev: "v0.11.0.1"
hooks:
- id: shellcheck

Expand Down
6 changes: 2 additions & 4 deletions additional_tools/eventDisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,8 @@ def plot(
# Plot parameters
ax.set_xlim(-pi, pi)
ax.set_ylim(-4, 4)
ax.set_xlabel(
r"$\
phi$"
)
ax.set_xlabel(r"$\
phi$")
ax.set_ylabel(r"$\eta$")
ax.tick_params(axis="both", which="major")

Expand Down
3 changes: 1 addition & 2 deletions additional_tools/splitTrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
Author: Carlos Erice Cid
"""


import os

import ROOT
Expand Down Expand Up @@ -137,7 +136,7 @@ def haddfiles(inputs):
help="If activated, run hadd over split chunks to get merged .root files.",
)

(options, args) = parser.parse_args()
options, args = parser.parse_args()

allInputFiles = []
with open(options.inputFiles) as filelist:
Expand Down
2 changes: 0 additions & 2 deletions additional_tools/track_reco_eff/SUEP_coffea_WH_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Pietro Lugato, Chad Freer, Luca Lavezzo, Joey Reichert 2023
"""

import os
import time
import warnings
from copy import deepcopy

Expand Down
1 change: 0 additions & 1 deletion histmaker/CMS_corrections/GNN_syst.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import logging
import sys

import utils

Expand Down
1 change: 0 additions & 1 deletion histmaker/CMS_corrections/btag_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import pickle
import sys

import awkward as ak
import correctionlib
Expand Down
5 changes: 1 addition & 4 deletions histmaker/utils/fill_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import json
import logging
import os
import subprocess
import sys
from collections import defaultdict
from copy import deepcopy
Expand Down Expand Up @@ -652,8 +650,7 @@ def blind_DataFrame(df: pd.DataFrame, label_out: str, SR: list) -> pd.DataFrame:
"""
if len(SR) != 2:
sys.exit(
label_out
+ """: Make sure you have correctly defined your signal region.
label_out + """: Make sure you have correctly defined your signal region.
For now we only support a two-variable SR, because of the way
this function was written. Exiting."""
)
Expand Down
1 change: 0 additions & 1 deletion plotting/utils/lumi_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import sys

sys.path.append("../")
Expand Down
1 change: 0 additions & 1 deletion plotting/utils/plot_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import re
import warnings

import hist
Expand Down