Skip to content

Commit

Permalink
reformat by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhua0320 committed Jul 17, 2024
1 parent 036499c commit 6701d53
Show file tree
Hide file tree
Showing 16 changed files with 518 additions and 83 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@ docs/collections/people.rst
docs/collections/projects.rst
docs/collections/proposals.rst
docs/collections/students.rst

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

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


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


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


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

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

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

Expand Down
7 changes: 1 addition & 6 deletions src/regolith/helpers/a_todohelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
from src.regolith.chained_db import _convert_to_dict
from src.regolith.fsclient import _id_key
from src.regolith.helpers.basehelper import DbHelperBase
from src.regolith.tools import (
all_docs_from_collection,
fragment_retrieval,
get_pi_id,
get_uuid,
)
from src.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: 1 addition & 6 deletions src/regolith/helpers/l_abstracthelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
from src.regolith.dates import get_dates
from src.regolith.fsclient import _id_key
from src.regolith.helpers.basehelper import SoutHelperBase
from src.regolith.tools import (
all_docs_from_collection,
dereference_institution,
get_person_contact,
get_pi_id,
)
from src.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: 1 addition & 6 deletions src/regolith/helpers/l_contactshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
from src.regolith.dates import get_dates, is_current
from src.regolith.fsclient import _id_key
from src.regolith.helpers.basehelper import SoutHelperBase
from src.regolith.tools import (
all_docs_from_collection,
fuzzy_retrieval,
get_pi_id,
search_collection,
)
from src.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: 1 addition & 5 deletions src/regolith/helpers/l_currentappointmentshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
from src.regolith.helpers.basehelper import SoutHelperBase
from src.regolith.helpers.makeappointmentshelper import _future_grant
from src.regolith.sorters import position_key
from src.regolith.tools import (
all_docs_from_collection,
fuzzy_retrieval,
merge_collections_superior,
)
from src.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: 1 addition & 6 deletions src/regolith/helpers/l_generalhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

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

HELPER_TARGET = "lister"

Expand Down
7 changes: 1 addition & 6 deletions src/regolith/helpers/l_milestoneshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
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: 1 addition & 6 deletions src/regolith/helpers/l_projectahelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import dateutil.parser as date_parser
from gooey import GooeyParser

from regolith.tools import all_docs_from_collection, collection_str, get_pi_id, key_value_pair_filter
from src.regolith.fsclient import _id_key
from src.regolith.helpers.basehelper import SoutHelperBase
from src.regolith.schemas import (
Expand All @@ -17,12 +18,6 @@
PROJECTUM_FINISHED_STATI,
PROJECTUM_PAUSED_STATI,
)
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
3 changes: 1 addition & 2 deletions src/regolith/helpers/makeappointmentshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from dateutil.relativedelta import relativedelta
from gooey import GooeyParser

from src.regolith.dates import get_dates

# from regolith.schemas import APPOINTMENTS_TYPES
from regolith.fsclient import _id_key
from regolith.helpers.basehelper import SoutHelperBase
Expand All @@ -30,6 +28,7 @@
is_fully_appointed,
merge_collections_superior,
)
from src.regolith.dates import get_dates

TARGET_COLL = "people"
HELPER_TARGET = "makeappointments"
Expand Down
Loading

0 comments on commit 6701d53

Please sign in to comment.