Skip to content

Commit 8be76d2

Browse files
committed
lint: switch from pylint-quotes to flake8-quotes
edaniszewski/pylint-quotes#28 has been open for nearly 2 years and makes the plugin unusable with pylint 3. Give up on pylint-quotes and use flake8-quotes instead. Add pylint to requirements/dev.in, since it is still required and no longer pulled in as a dependency of pylint-quotes. Signed-off-by: Kevin Locke <[email protected]>
1 parent 9acf981 commit 8be76d2

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ load-plugins = [
140140
'pylint.extensions.eq_without_hash',
141141
'pylint.extensions.overlapping_exceptions',
142142
'pylint.extensions.redefined_variable_type',
143-
'pylint_quotes',
144143
]
145144

146145
[tool.pylint.messages_control]
@@ -161,13 +160,6 @@ enable = [
161160
'useless-suppression',
162161
]
163162

164-
[tool.pylint.string_quotes]
165-
# Enforce string quoting style
166-
# Follow PEP 257 recommendation to use double quotes around docstrings
167-
docstring-quote = 'double'
168-
string-quote = 'single-avoid-escape'
169-
triple-quote = 'single'
170-
171163
[tool.pytest.ini_options]
172164
addopts = [
173165
'--strict-config',

requirements/dev.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ flake8
88
flake8-bugbear
99
flake8-comprehensions
1010
flake8-docstrings
11+
flake8-quotes
1112
flake8-logging-format
1213
flake8-rst-docstrings >= 0.0.11
1314
isort
@@ -18,7 +19,7 @@ pydocstyle >= 6.1.0
1819
# Required for `setup.py check --restructuredtext --strict`. Otherwise:
1920
# warning: check: Cannot analyze code. Pygments package not found.
2021
pygments
21-
pylint-quotes
22+
pylint
2223
pyroma
2324
types-mock
2425
types-setuptools

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ ignore =
104104
# Line break before binary operator
105105
W503,
106106
max-line-length = 80
107+
multiline-quotes = '''
107108
per-file-ignores =
108109
# Don't require doc comments for test members
109110
test_*.py:D101,D102,D103,D105,D107

0 commit comments

Comments
 (0)