Skip to content

Commit

Permalink
Revert "pre-commit files in src/regolith dir"
Browse files Browse the repository at this point in the history
This reverts commit 4207f2d.
  • Loading branch information
stevenhua0320 committed Jul 18, 2024
1 parent 4207f2d commit 86dbe34
Show file tree
Hide file tree
Showing 15 changed files with 91 additions and 15 deletions.
10 changes: 9 additions & 1 deletion src/regolith/builders/basebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
HAVE_BIBTEX_PARSER = False

from regolith.sorters import category_val, date_key, doc_date_key, level_val
from regolith.tools import LATEX_OPTS, date_to_rfc822, gets, latex_safe, latex_safe_url, month_and_year, rfc822now
from regolith.tools import (
LATEX_OPTS,
date_to_rfc822,
gets,
latex_safe,
latex_safe_url,
month_and_year,
rfc822now,
)


class BuilderBase(object):
Expand Down
6 changes: 5 additions & 1 deletion src/regolith/builders/coabuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
from regolith.builders.basebuilder import BuilderBase
from regolith.dates import get_dates, is_after, month_to_int
from regolith.sorters import position_key
from regolith.tools import all_docs_from_collection, filter_publications, fuzzy_retrieval
from regolith.tools import (
all_docs_from_collection,
filter_publications,
fuzzy_retrieval,
)

NUM_COAUTHOR_MONTHS = 48
NUM_POSTDOC_MONTHS = None
Expand Down
7 changes: 6 additions & 1 deletion src/regolith/builders/cpbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from regolith.dates import get_dates, is_current
from regolith.fsclient import _id_key
from regolith.sorters import position_key
from regolith.tools import all_docs_from_collection, filter_grants, fuzzy_retrieval, merge_collections_all
from regolith.tools import (
all_docs_from_collection,
filter_grants,
fuzzy_retrieval,
merge_collections_all,
)


def is_pending(status):
Expand Down
6 changes: 5 additions & 1 deletion src/regolith/builders/grantreportbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from regolith.builders.basebuilder import LatexBuilderBase
from regolith.dates import get_dates, is_current
from regolith.fsclient import _id_key
from regolith.tools import all_docs_from_collection, filter_presentations, fuzzy_retrieval
from regolith.tools import (
all_docs_from_collection,
filter_presentations,
fuzzy_retrieval,
)


class GrantReportBuilder(LatexBuilderBase):
Expand Down
6 changes: 5 additions & 1 deletion src/regolith/builders/preslistbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
from regolith.fsclient import _id_key
from regolith.sorters import position_key
from regolith.stylers import month_fullnames, sentencecase
from regolith.tools import all_docs_from_collection, filter_presentations, group_member_ids
from regolith.tools import (
all_docs_from_collection,
filter_presentations,
group_member_ids,
)


class PresListBuilder(LatexBuilderBase):
Expand Down
6 changes: 5 additions & 1 deletion src/regolith/builders/publistbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

from regolith.builders.basebuilder import LatexBuilderBase
from regolith.sorters import ene_date_key, position_key
from regolith.tools import all_docs_from_collection, filter_publications, make_bibtex_file
from regolith.tools import (
all_docs_from_collection,
filter_publications,
make_bibtex_file,
)

LATEX_OPTS = ["-halt-on-error", "-file-line-error"]

Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/a_todohelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from regolith.chained_db import _convert_to_dict
from regolith.fsclient import _id_key
from regolith.helpers.basehelper import DbHelperBase
from regolith.tools import all_docs_from_collection, fragment_retrieval, get_pi_id, get_uuid
from regolith.tools import (
all_docs_from_collection,
fragment_retrieval,
get_pi_id,
get_uuid,
)

TARGET_COLL = "todos"
ALLOWED_IMPORTANCE = [3, 2, 1, 0]
Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/attestationshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from regolith.fsclient import _id_key
from regolith.helpers.basehelper import DbHelperBase
from regolith.sorters import position_key
from regolith.tools import all_docs_from_collection, fuzzy_retrieval, get_appointments, merge_collections_superior
from regolith.tools import (
all_docs_from_collection,
fuzzy_retrieval,
get_appointments,
merge_collections_superior,
)

# print([k for k,v in chained_db['people'].items()])

Expand Down
10 changes: 9 additions & 1 deletion src/regolith/helpers/basehelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
from xonsh.lib import subprocess

from regolith.sorters import category_val, date_key, doc_date_key, level_val
from regolith.tools import LATEX_OPTS, date_to_rfc822, gets, latex_safe, latex_safe_url, month_and_year, rfc822now
from regolith.tools import (
LATEX_OPTS,
date_to_rfc822,
gets,
latex_safe,
latex_safe_url,
month_and_year,
rfc822now,
)


class HelperBase(object):
Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/l_abstracthelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
from regolith.dates import get_dates
from regolith.fsclient import _id_key
from regolith.helpers.basehelper import SoutHelperBase
from regolith.tools import all_docs_from_collection, dereference_institution, get_person_contact, get_pi_id
from regolith.tools import (
all_docs_from_collection,
dereference_institution,
get_person_contact,
get_pi_id,
)

TARGET_COLL = "presentations"
HELPER_TARGET = "l_abstract"
Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/l_contactshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from regolith.dates import get_dates, is_current
from regolith.fsclient import _id_key
from regolith.helpers.basehelper import SoutHelperBase
from regolith.tools import all_docs_from_collection, fuzzy_retrieval, get_pi_id, search_collection
from regolith.tools import (
all_docs_from_collection,
fuzzy_retrieval,
get_pi_id,
search_collection,
)

TARGET_COLL = "contacts"
HELPER_TARGET = "l_contacts"
Expand Down
6 changes: 5 additions & 1 deletion src/regolith/helpers/l_currentappointmentshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
from regolith.helpers.basehelper import SoutHelperBase
from regolith.helpers.makeappointmentshelper import _future_grant
from regolith.sorters import position_key
from regolith.tools import all_docs_from_collection, fuzzy_retrieval, merge_collections_superior
from regolith.tools import (
all_docs_from_collection,
fuzzy_retrieval,
merge_collections_superior,
)

SEMESTER_START_MONTH = {"fall": (9, 12), "spring": (1, 5), "summer": (6, 8)}

Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/l_generalhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

from regolith.fsclient import _id_key
from regolith.helpers.basehelper import SoutHelperBase
from regolith.tools import all_docs_from_collection, collection_str, get_pi_id, search_collection
from regolith.tools import (
all_docs_from_collection,
collection_str,
get_pi_id,
search_collection,
)

HELPER_TARGET = "lister"

Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/l_milestoneshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
PROJECTUM_PAUSED_STATI,
alloweds,
)
from regolith.tools import all_docs_from_collection, collection_str, get_pi_id, key_value_pair_filter
from regolith.tools import (
all_docs_from_collection,
collection_str,
get_pi_id,
key_value_pair_filter,
)

PROJECTUM_STATI = alloweds.get("PROJECTUM_STATI")
TARGET_COLL = "projecta"
Expand Down
7 changes: 6 additions & 1 deletion src/regolith/helpers/l_projectahelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
PROJECTUM_FINISHED_STATI,
PROJECTUM_PAUSED_STATI,
)
from regolith.tools import all_docs_from_collection, collection_str, get_pi_id, key_value_pair_filter
from regolith.tools import (
all_docs_from_collection,
collection_str,
get_pi_id,
key_value_pair_filter,
)

TARGET_COLL = "projecta"
HELPER_TARGET = "l_projecta"
Expand Down

0 comments on commit 86dbe34

Please sign in to comment.