Skip to content

Commit

Permalink
Simplify and update lint configurations
Browse files Browse the repository at this point in the history
- flake8 ignores W503 by default
- Use isort profile to simplify configuration
- Update isort CLI invocation for 5.* series
  • Loading branch information
jdufresne committed Sep 1, 2020
1 parent 24aac86 commit f76d71d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ html2text = py.typed

[flake8]
max_line_length = 88
ignore =
E203
W503
extend-ignore = E203

[isort]
combine_as_imports = True
include_trailing_comma = True
line_length = 88
multi_line_output = 3
profile = black

[mypy]
python_version = 3.5
3 changes: 2 additions & 1 deletion test/test_html2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import subprocess
import sys

import html2text
import pytest

import html2text

skip = object()


Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ skip_install = true
[testenv:isort]
basepython = python3
commands =
isort --check-only --diff
isort --check --diff .
deps =
isort
isort >= 5.0.1
skip_install = true

[testenv:mypy]
Expand Down

0 comments on commit f76d71d

Please sign in to comment.