Skip to content

Commit 1f7c823

Browse files
committed
MAINT: enforce string quoting style with ruff
1 parent 6414f05 commit 1f7c823

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,29 @@ lint.select = [
8585
'E', # pycodestyle
8686
'F', # pyflakes
8787
'I', # isort
88+
'Q', # flake8-quotes
8889
'W', # pycodestyle
8990
'RUF100', # ruff
9091
]
9192
exclude = [
9293
'docs/conf.py',
9394
]
9495

96+
[tool.ruff.format]
97+
quote-style = 'single'
98+
99+
[tool.ruff.lint.flake8-quotes]
100+
avoid-escape = false
101+
inline-quotes = 'single'
102+
multiline-quotes = 'single'
103+
95104
[tool.ruff.lint.isort]
96105
lines-between-types = 1
97106
lines-after-imports = 2
98107
known-first-party = [
99108
'mesonpy',
100109
]
101110

102-
[tool.ruff.format]
103-
quote-style = 'single'
104-
105111

106112
[tool.coverage.run]
107113
disable_warnings = [

0 commit comments

Comments
 (0)