Skip to content

Commit

Permalink
more flake8 fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lavergne committed Mar 8, 2020
1 parent 3465f82 commit 404dd1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ matrix:
- python: pypy3

install:
- pip install . coverage coveralls flake8 sphinx sphinx-argparse
- pip install . black coverage coveralls flake8 sphinx sphinx-argparse

script:
- make flake
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ dfm_source_3 := "https://raw.githubusercontent.com/google/diff-match-patch/maste
all: coverage flake

flake:
flake8 tests xmldiff --exclude *diff_match_patch*.py --ignore=E231,E501
black --check
flake8 tests xmldiff --exclude *diff_match_patch*.py --ignore=E231,E501,W503

coverage:
coverage run setup.py test
Expand Down
6 changes: 2 additions & 4 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Setting Up a Development Environment

To set up a development environment you need a github account, git, and
of course Python with pip installed. You also should have the Python tools
``coverage`` and ``flake8`` installed::
``black``, ``coverage``, and ``flake8`` installed::

pip install coverage flake8
pip install black coverage flake8

Then you need to clone the repository, and install it's dependencies::

Expand All @@ -44,8 +44,6 @@ The following test runners/commands are known to work:

* ``python setup.py test``

* ``nosetests``

* ``pytest``

There is no support for ``tox`` to run test under different Python versions.
Expand Down
1 change: 0 additions & 1 deletion tests/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,6 @@ def test_sbt_template(self):

result = self._diff(left, right)

# Most lines get too long and flake8 complains because of this part:
bm_bm_bm = "/metal:block/metal:block/metal:block"
self.assertEqual(
result,
Expand Down

0 comments on commit 404dd1b

Please sign in to comment.