Skip to content

Commit

Permalink
apply precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Oct 27, 2024
1 parent 0dd5e4c commit 5850498
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
14 changes: 3 additions & 11 deletions src/cifkit/models/cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import os

# Bond pair
from cifkit.coordination.bond_distance import (
get_shortest_distance_per_bond_pair,
)
from cifkit.coordination.bond_distance import get_shortest_distance_per_bond_pair
from cifkit.coordination.composition import (
compute_avg_CN,
get_bond_counts,
Expand Down Expand Up @@ -32,10 +30,7 @@
get_radius_values_per_element,
)
from cifkit.figures import polyhedron
from cifkit.occupancy.mixing import (
get_mixing_type_per_pair_dict,
get_site_mixing_type,
)
from cifkit.occupancy.mixing import get_mixing_type_per_pair_dict, get_site_mixing_type
from cifkit.preprocessors.environment import get_site_connections

# Coordination number
Expand All @@ -44,10 +39,7 @@
# Supercell generation
from cifkit.preprocessors.supercell import get_supercell_points
from cifkit.preprocessors.supercell_util import get_cell_atom_count
from cifkit.utils.bond_pair import (
get_bond_pairs,
get_pairs_sorted_by_mendeleev,
)
from cifkit.utils.bond_pair import get_bond_pairs, get_pairs_sorted_by_mendeleev

# Edit .cif file
from cifkit.utils.cif_editor import edit_cif_file_based_on_db
Expand Down
4 changes: 1 addition & 3 deletions tests/core/coordination/test_bond_distance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from cifkit.coordination.bond_distance import (
get_shortest_distance_per_bond_pair,
)
from cifkit.coordination.bond_distance import get_shortest_distance_per_bond_pair


def test_get_minimum_dist_per_bond_pair(
Expand Down
2 changes: 1 addition & 1 deletion tests/core/models/test_cif_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest

from cifkit import CifEnsemble
from cifkit.utils.folder import get_file_count, get_file_paths, copy_files
from cifkit.utils.folder import copy_files, get_file_count, get_file_paths


@pytest.mark.fast
Expand Down
5 changes: 1 addition & 4 deletions tests/core/util/test_cif_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import gemmi
import pytest

from cifkit.utils.cif_editor import (
add_hashtag_in_first_line,
remove_author_loop,
)
from cifkit.utils.cif_editor import add_hashtag_in_first_line, remove_author_loop
from cifkit.utils.cif_parser import get_unitcell_lengths


Expand Down

0 comments on commit 5850498

Please sign in to comment.