Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Jan 14, 2025
1 parent da744a1 commit 1be8274
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python -m pip install -e '.[lint]'
- name: Print code formatting with black (hints here if next step errors)
run: black --diff .
run: black qcengine --diff .

- name: Lint
shell: bash
Expand Down
10 changes: 6 additions & 4 deletions qcengine/programs/cfour/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ def format_keyword(keyword: str, val: Any) -> Tuple[str, str]:

# * manual: (keyword is cc-pVXZ or PVXZ, where X = D, T, Q, 5, and 6, respectively)
elif keyword in ["CFOUR_BASIS", "BASIS"] and val.upper() in [
"CC-PVDZ", "CC-PVTZ", "CC-PVQZ", "CC-PV5Z", "CC-PV6Z",
"CC-PVDZ",
"CC-PVTZ",
"CC-PVQZ",
"CC-PV5Z",
"CC-PV6Z",
]:
text = val[:4].lower() + val[4:].upper()

# manual: (keyword is PwCVXZ, where X = D, T, and Q, respectively)
elif keyword in ["CFOUR_BASIS", "BASIS"] and val.upper() in [
"PWCVDZ", "PWCVTZ", "PWCVQZ"
]:
elif keyword in ["CFOUR_BASIS", "BASIS"] and val.upper() in ["PWCVDZ", "PWCVTZ", "PWCVQZ"]:
text = "Pw" + val[3:].upper()

# Transform the methods that *must* be mixed case
Expand Down

0 comments on commit 1be8274

Please sign in to comment.