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

[pre-commit.ci] pre-commit autoupdate #65

Merged
merged 2 commits into from
Jul 10, 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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -20,7 +20,7 @@ repos:
- id: check-ast

- repo: https://github.com/mattlqx/pre-commit-sign
rev: v1.1.3
rev: v1.2.0
hooks:
- id: sign-commit
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -31,7 +31,7 @@ repos:
- id: rst-directive-colons

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [ --py36-plus ]
Expand All @@ -43,7 +43,7 @@ repos:

# Notebook formatting
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.5
hooks:

- id: nbqa-pyupgrade
Expand All @@ -57,6 +57,6 @@ repos:
stages: [ manual ]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion raredecay/analysis/compatibility_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

"""


from raredecay.tools import dev_tool


Expand Down
2 changes: 2 additions & 0 deletions raredecay/analysis/ml_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

The functions serve as basic tools, which do already a lot of the work.
"""

import copy
import timeit
import warnings
Expand Down Expand Up @@ -1379,6 +1380,7 @@ def mcreweighted_as_real(

# collect all the new weights to get a really cross-validated reweighted dataset


# COMPATIBILITY LAYER START
# OLD FUNCTION, DEPRECEATED
def reweight_Kfold(
Expand Down
1 change: 0 additions & 1 deletion raredecay/analysis/physical_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
values.
"""


import copy

import matplotlib.pyplot as plt
Expand Down
1 change: 0 additions & 1 deletion raredecay/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@author: Jonas Eschle "Mayou36"
"""


__all__ = ["RUN_NAME", "run_message", "OUTPUT_CFG", "save_fig_cfg", "logger_cfg"]

RUN_NAME = "Default run name"
Expand Down
1 change: 0 additions & 1 deletion raredecay/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

"""


from raredecay.analysis.physical_analysis import add_branch_to_rootfile
from raredecay.tools.data_storage import HEPDataStorage
from raredecay.tools.data_tools import adv_return, make_root_dict, to_list, try_unpickle
Expand Down
1 change: 0 additions & 1 deletion raredecay/globals_.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
can be extended if wanted
"""


from . import config as cfg
from . import meta_config as meta_cfg
from .tools import output
Expand Down
2 changes: 1 addition & 1 deletion raredecay/meta_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def set_parallel_profile(n_cpu=-1, gpu_in_use=False, stratified_kfolding=True):
# about but may be happy to have them saved somewhere)
DEFAULT_EXT_SAVE_FIG = dict(
file_format=["png", "pdf"],
to_pickle=True
to_pickle=True,
# save_cfg=None
)

Expand Down
1 change: 0 additions & 1 deletion raredecay/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

"""


try:
from raredecay.analysis.ml_analysis import (
backward_feature_elimination,
Expand Down
1 change: 0 additions & 1 deletion raredecay/reweight.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

"""


try:
from raredecay.analysis.reweight import reweight, reweight_kfold
except Exception as err:
Expand Down
1 change: 0 additions & 1 deletion raredecay/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

"""


try:
from raredecay.analysis.ml_analysis import mcreweighted_as_real
from raredecay.tools.ml_scores import mayou_score, train_similar, train_similar_new
Expand Down
1 change: 0 additions & 1 deletion raredecay/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@author: Jonas Eschle "Mayou36"
"""


__all__ = [
"initialize",
"finalize",
Expand Down
1 change: 1 addition & 0 deletions raredecay/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!

"""

#
1 change: 0 additions & 1 deletion raredecay/tools/data_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
takes data, weights, targets, names and converts automatically, plots and more.
"""


import copy
import math
import random
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/data_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Contains several tools to convert, load, save and plot data
"""


import copy
import os
import pickle
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/dev_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Contains several useful tools for all kind of programs
"""


import collections

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

"""


import math as mt

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

"""


import copy
import io as StringIO
import os
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ hep_ml>=0.5.0
matplotlib
numpy
pandas
scipy
rep @ git+https://github.com/REPlegacy/rep
scikit-learn~=0.19.0 # otherwise, breaks REP
scipy
seaborn
uproot
xgboost<1.3 # TODO: negative weights and xgboost don't go well, error in 1.3+
1 change: 1 addition & 0 deletions scripts_readyToUse/reweightCV_score_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

The raredecay package is available at https://github.com/mayou36/raredecay
"""

from raredecay import settings

# first of all, it is advised to set some run-configurations like logger-level,
Expand Down
Loading