Skip to content

Commit

Permalink
Add whitelist for the pint package (#258).
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- authored Jun 11, 2022
1 parent ebd643d commit 34e93b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Add whitelist for `pint.UnitRegistry.default_formatter` (Ben Elliston, #258).

# 2.4 (2022-05-19)

* Print absolute filepaths as relative again (as in version 2.1 and before)
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ commands =
[testenv]
deps =
coverage
pint
pytest
pytest-cov
commands =
Expand Down
4 changes: 4 additions & 0 deletions vulture/whitelists/pint_whitelist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import pint

ureg = pint.UnitRegistry()
ureg.default_format

0 comments on commit 34e93b0

Please sign in to comment.