Skip to content

Commit

Permalink
STY: flake8 and isort compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
aberges-SLAC committed May 17, 2024
1 parent fa19600 commit d183294
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions scripts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Check the directories for the iocmanager config file
VALID_HUTCH = sorted([d for d in gb.glob('/cds/group/pcds/pyps/config'
+ '/*/')
+ '/*/')
if gb.glob(d + 'iocmanager.cfg')])
# Trim to 3 letter hutch code, include 'all' = '*'
VALID_HUTCH = ['all'] + [s.rsplit(r'/', maxsplit=2)[-2] for s in VALID_HUTCH]
Expand All @@ -24,4 +24,3 @@
DEF_IMGR_KEYS = ['procmgr_config', 'hosts', 'dir', 'id', 'cmd',
'flags', 'port', 'host', 'disable', 'history',
'delay', 'alias', 'hard']

7 changes: 4 additions & 3 deletions scripts/getPVAliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
import sys

from colorama import Fore, Style
from prettytable import PrettyTable

from grep_more_ioc import (clean_ansi, find_ioc, find_parent_ioc, fix_dir,
search_file, simple_prompt)
from prettytable import PrettyTable

###############################################################################
# %% Functions
Expand Down Expand Up @@ -193,8 +194,8 @@ def show_temp_table(input_data: list, col_list: list):
parser = argparse.ArgumentParser(
prog='gatherPVAliases',
description="gathers all record <-> alias associations from a child's "
"ioc.cfg, st.cmd, and parent ioc.cfg.",
epilog='')
"ioc.cfg, st.cmd, and parent ioc.cfg.",
epilog='')
# main command arguments
parser.add_argument('patt', type=str)
parser.add_argument('hutch', type=str)
Expand Down
3 changes: 2 additions & 1 deletion scripts/grep_more_ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
from shutil import get_terminal_size

import pandas as pd
from constants import (DEF_IMGR_KEYS, VALID_HUTCH)
from colorama import Fore, Style

from constants import DEF_IMGR_KEYS, VALID_HUTCH

###############################################################################
# %% Global settings
###############################################################################
Expand Down

0 comments on commit d183294

Please sign in to comment.