Skip to content

Commit

Permalink
Modified linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbmorgan committed Nov 5, 2024
1 parent dbd61ca commit aefb574
Show file tree
Hide file tree
Showing 46 changed files with 46,730 additions and 433 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:

ruff-format:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
Expand Down
1 change: 1 addition & 0 deletions dfttoolkit/utils/math_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/usr/bin/env python3
2 changes: 1 addition & 1 deletion dfttools/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ def get_symmetries(self, save_directory=None, symmetry_precision=1e-05):
unit_cell = self.get_spglib_cell()
symmetry = spglib.get_symmetry(unit_cell, symprec=symmetry_precision)

if not save_directory == None:
if save_directory is not None:
if not os.path.exists(save_directory):
print("symmetry not saved; save_directory does not exist")
else:
Expand Down
Loading

0 comments on commit aefb574

Please sign in to comment.