Skip to content

Commit

Permalink
Enforce black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed May 2, 2020
1 parent 5667f80 commit 1a25712
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Development testing
.. image:: http://codecov.io/github/jingw/pyhdfs/coverage.svg?branch=master
:target: http://codecov.io/github/jingw/pyhdfs?branch=master

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

First run ``install-hdfs.sh x.y.z``, which will download, extract, and run the HDFS NN/DN processes in the current directory.
(Replace ``x.y.z`` with a real version.)
Then run the following commands.
Expand Down
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
black
flake8
mypy
pytest
Expand Down
3 changes: 3 additions & 0 deletions test_pyhdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ def test_equality(self) -> None:


class TestTools(unittest.TestCase):
def test_black(self) -> None:
subprocess.check_call(["black", "--check", os.path.dirname(__file__)])

def test_flake8(self) -> None:
subprocess.check_call(["flake8"], cwd=os.path.dirname(__file__))

Expand Down

0 comments on commit 1a25712

Please sign in to comment.