Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(pre-commit): pre-commit autoupdate #1167

Merged
merged 3 commits into from
Aug 23, 2024
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
- id: setup-cfg-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
4 changes: 2 additions & 2 deletions binder/applying_corrections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@
"source": [
"from coffea.jetmet_tools import FactorizedJetCorrector, JetCorrectionUncertainty\n",
"from coffea.jetmet_tools import JECStack, CorrectedJetsFactory\n",
"import awkward as ak\n",
"import numpy as np\n",
"\n",
"ext = extractor()\n",
Expand Down Expand Up @@ -585,7 +584,8 @@
}
],
"source": [
"import correctionlib, rich\n",
"import correctionlib\n",
"import rich\n",
"import correctionlib.convert\n",
"\n",
"# without a name, the resulting object will fail validation\n",
Expand Down
6 changes: 3 additions & 3 deletions binder/dataset_discovery.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@
"from coffea.dataset_tools import rucio_utils\n",
"from coffea.dataset_tools.dataset_query import print_dataset_query\n",
"from rich.console import Console\n",
"from rich.table import Table\n",
"from coffea.dataset_tools.dataset_query import DataDiscoveryCLI"
]
},
Expand Down Expand Up @@ -1966,8 +1965,9 @@
"source": [
"dataset = '/DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer20UL18NanoAODv9-106X_upgrade2018_realistic_v16_L1v1-v2/NANOAODSIM'\n",
"for i, (file, meta) in enumerate(fileset_available[dataset][\"files\"].items()):\n",
" print(file, meta) \n",
" if i>3: break"
" print(file, meta)\n",
" if i>3:\n",
" break"
]
},
{
Expand Down
6 changes: 2 additions & 4 deletions binder/nanoevents_pq.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
"metadata": {},
"outputs": [],
"source": [
"import pyarrow\n",
"import pyarrow.dataset as ds\n",
"import pyarrow.parquet as pq"
"import pyarrow.dataset as ds"
]
},
{
Expand Down Expand Up @@ -243,7 +241,7 @@
"source": [
"import uproot\n",
"import awkward as ak\n",
"from coffea.nanoevents import NanoEventsFactory, NanoAODSchema\n",
"from coffea.nanoevents import NanoEventsFactory\n",
"from coffea import processor, hist"
]
},
Expand Down
146 changes: 73 additions & 73 deletions binder/servicex/ATLAS/DaskAnalysis.ipynb

Large diffs are not rendered by default.

182 changes: 95 additions & 87 deletions binder/servicex/ATLAS/LocalExample.ipynb

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion binder/systematics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
},
"outputs": [],
"source": [
"import numpy as np\n",
"def muon_pt_scale(pt): \n",
" return (1.0 + np.array([0.05, -0.05], dtype=np.float32)) * pt[:, None]\n",
"\n",
Expand Down
Loading