Skip to content

Commit

Permalink
pipenv version clash workaround
Browse files Browse the repository at this point in the history
Should close issues #18 / #21 with the least
bad workaround. I consider it unlikely that
many people using black and flake8-black would
be using anything older than black 19.3b0 which
is now over a year old.
  • Loading branch information
peterjc committed May 18, 2020
1 parent 670e381 commit 75468a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ Version History
======= ============ ===========================================================
Version Release date Changes
------- ------------ -----------------------------------------------------------
v0.1.2 2020-05-18 - Minimum requirement on black 19.3b0 or later is now
implicit. This is a workaround for `pipenv issue 3928
<https://github.com/pypa/pipenv/issues/3928>`_. Upgrade
black if running flake8 gives an error like this:
``Flake8 failed to load plugin "BLK" due to __call__()
got an unexpected keyword argument 'target_versions'.``
v0.1.1 2019-08-26 - Option to use a (global) black configuration file,
contribution from
`Tomasz Grining <https://github.com/098799>`_.
Expand Down
2 changes: 1 addition & 1 deletion flake8_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from flake8 import LOG


__version__ = "0.1.1"
__version__ = "0.1.2"

black_prefix = "BLK"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def get_version(fname="flake8_black.py"):
],
keywords="PEP8",
py_modules=["flake8_black"],
install_requires=["flake8 >= 3.0.0", "black >= 19.3b0"],
install_requires=["flake8 >= 3.0.0", "black"],
entry_points={"flake8.extension": ["BLK = flake8_black:BlackStyleChecker"]},
)

0 comments on commit 75468a8

Please sign in to comment.