Skip to content

Commit 66b0bd0

Browse files
committed
MAINT: enforce string quoting style with ruff
1 parent 352ded1 commit 66b0bd0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ repos:
1818
- id: check-yaml
1919
- id: check-toml
2020
- id: debug-statements
21-
- id: double-quote-string-fixer
2221
- id: end-of-file-fixer
2322
- id: trailing-whitespace
2423
- repo: https://github.com/astral-sh/ruff-pre-commit

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ lint.select = [
8484
'E', # pycodestyle
8585
'F', # pyflakes
8686
'I', # isort
87+
'Q', # flake8-quotes
8788
'W', # pycodestyle
8889
'RUF100', # ruff
8990
]
@@ -98,6 +99,11 @@ known-first-party = [
9899
'mesonpy',
99100
]
100101

102+
[tool.ruff.lint.flake8-quotes]
103+
avoid-escape = false
104+
inline-quotes = 'single'
105+
multiline-quotes = 'single'
106+
101107

102108
[tool.coverage.run]
103109
disable_warnings = [

0 commit comments

Comments
 (0)