diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78f04f0..ab73f6f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.32.1 + rev: v3.15.1 hooks: - id: pyupgrade args: ["--py36-plus"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.5.0 hooks: - id: check-added-large-files args: [ '--maxkb=256' ] @@ -20,18 +20,18 @@ repos: args: [ '--fix=lf' ] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.3.0 hooks: - id: black types_or: [ python, pyi ] - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [ flake8-bugbear, flake8-implicit-str-concat ] diff --git a/persiantools/jdatetime.py b/persiantools/jdatetime.py index d3b58c0..9c8bd18 100644 --- a/persiantools/jdatetime.py +++ b/persiantools/jdatetime.py @@ -1122,9 +1122,7 @@ def __base_compare(self, other): return ( 0 if (y, m, d, h, m, s, ms) == (y2, m2, d2, h2, m2, s2, ms2) - else 1 - if (y, m, d, h, m, s, ms) > (y2, m2, d2, h2, m2, s2, ms2) - else -1 + else 1 if (y, m, d, h, m, s, ms) > (y2, m2, d2, h2, m2, s2, ms2) else -1 ) def _cmp(self, other, allow_mixed=False):