Skip to content

Commit

Permalink
apply pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jun 27, 2022
1 parent 3490a13 commit 7bf6890
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pygc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from pygc.gc import great_circle
from pygc.gc import great_distance

__all__ = ["great_circle", "great_distance"]

try:
from ._version import __version__
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion pygc/gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def vinc_dist(f, a, phi1, lembda1, phi2, lembda2):
max_loop = 100
count_loop = 0
while (last_lembda < -3000000.0 or lembda != 0 and np.absolute((last_lembda - lembda) / lembda) > 1.0e-9):
if count_loop>max_loop:
if count_loop > max_loop:
print("max loop reached, break")
break
count_loop += 1
Expand Down
24 changes: 23 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,26 @@ formats = gztar
[check-manifest]
ignore =
*.yml
.coveragerc

[tool:pytest]
addopts = -s -rxs -v
flake8-max-line-length = 100
flake8-ignore =
*.py E265 E501 E221 E203 E201 E124 E202 E241 E251 W293 W291 W504

[flake8]
max-line-length = 100
per-file-ignores =
*.py: E265 E501 E221 E203 E201 E124 E202 E241 E251 W293 W291 W504

[tool:isort]
line_length=100
indent=' '
balanced_wrapping=1
multi_line_output=3
default_section=FIRSTPARTY
use_parentheses=1
reverse_relative=1
length_sort=1
combine_star=1
order_by_type=0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"write_to_template": '__version__ = "{version}"',
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$",
},
)
)

0 comments on commit 7bf6890

Please sign in to comment.