Skip to content

Commit 273513a

Browse files
authored
Merge pull request #31 from jepler/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 0bbd62b + 9c7e203 commit 273513a

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
2020
- repo: https://github.com/pycqa/pylint
21-
rev: v2.15.10
21+
rev: v2.16.0b0
2222
hooks:
2323
- id: pylint
2424
name: lint (examples)

.pylintrc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,3 @@ max-statements=50
391391

392392
# Minimum number of public methods for a class (see R0903).
393393
min-public-methods=1
394-
395-
396-
[EXCEPTIONS]
397-
398-
# Exceptions that will emit a warning when being caught. Defaults to
399-
# "Exception"
400-
overgeneral-exceptions=Exception

jepler_udecimal/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,16 +1798,16 @@ def _round_05up(self, prec):
17981798
else:
17991799
return -self._round_down(prec)
18001800

1801-
_pick_rounding_function = dict(
1802-
ROUND_DOWN=_round_down,
1803-
ROUND_UP=_round_up,
1804-
ROUND_HALF_UP=_round_half_up,
1805-
ROUND_HALF_DOWN=_round_half_down,
1806-
ROUND_HALF_EVEN=_round_half_even,
1807-
ROUND_CEILING=_round_ceiling,
1808-
ROUND_FLOOR=_round_floor,
1809-
ROUND_05UP=_round_05up,
1810-
)
1801+
_pick_rounding_function = {
1802+
ROUND_DOWN: _round_down,
1803+
ROUND_UP: _round_up,
1804+
ROUND_HALF_UP: _round_half_up,
1805+
ROUND_HALF_DOWN: _round_half_down,
1806+
ROUND_HALF_EVEN: _round_half_even,
1807+
ROUND_CEILING: _round_ceiling,
1808+
ROUND_FLOOR: _round_floor,
1809+
ROUND_05UP: _round_05up,
1810+
}
18111811

18121812
def __round__(self, n=None):
18131813
"""Round self to the nearest integer, or to a given precision.

0 commit comments

Comments
 (0)