Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Replace pycodestyle with black #662

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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