Skip to content

Commit

Permalink
Merge pull request #662 from karlch/ci-with-black
Browse files Browse the repository at this point in the history
CI: Replace pycodestyle with black
  • Loading branch information
karlch authored Jul 12, 2023
2 parents 0212b52 + ee4d0f0 commit 526dde7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion misc/requirements/requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pylint==2.17.4
pycodestyle==2.10.0
black==23.7.0
pydocstyle==6.3.0
2 changes: 0 additions & 2 deletions tests/unit/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def cached_method_cls(mocker):
"""Fixture to retrieve a class with mock utilities and a cached method."""

class CachedMethodCls:

RESULT = 42

def __init__(self):
Expand Down Expand Up @@ -143,7 +142,6 @@ def test_parameter_names(function):
@pytest.mark.parametrize("type_hint", ("int", int))
def test_slot(type_hint):
class Dummy(QObject):

signal = pyqtSignal(int)

def __init__(self):
Expand Down
10 changes: 1 addition & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ deps =
commands =
pylint vimiv scripts/pylint_checkers
{toxinidir}/scripts/lint_tests.py tests
pycodestyle vimiv tests scripts/pylint_checkers
black --check --diff --exclude ".*syntax_error.*" vimiv tests scripts/pylint_checkers
pydocstyle vimiv scripts/pylint_checkers
allowlist_externals =
{toxinidir}/scripts/lint_tests.py
Expand Down Expand Up @@ -81,14 +81,6 @@ commands =
{toxinidir}/scripts/src2rst.py
sphinx-build -b man docs misc

# Settings for pycodestyle
[pycodestyle]
max-line-length = 88
# E203: whitespace before ':' wrongly raised for slicing
# E501: line too long checked by pylint
# W503: line break before binary operator does not conform to pep8
ignore = E203,E501,W503

# Settings for check-manifest
[check-manifest]
ignore =
Expand Down

0 comments on commit 526dde7

Please sign in to comment.