diff --git a/pyproject.toml b/pyproject.toml index 8d3ba19da..6979add11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,11 +21,14 @@ profile = "black" max-line-length = 99 max-doc-length = 99 exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"] -select = ["E", "W", "F", "C", "N", "R", "D", "H"] +select = ["E", "W", "F", "C", "N", "R", "D", "H", "Q0"] ignore = ["D105", "D107", "W503"] # D100, D101, D102, D103, D104: Ignore missing docstrings in tests per-file-ignores = ["test/*:D100,D101,D102,D103,D104"] docstring-convention = "google" +inline-quotes = "single" +multiline-quotes = "double" +docstring-quotes = "double" [tool.pyright] include = ["ops/*.py", "ops/_private/*.py", "test/*.py", "test/charms/*/src/*.py"] diff --git a/requirements-dev.txt b/requirements-dev.txt index 0f79aa4d1..48239fae5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,6 +3,7 @@ autopep8~=1.6 flake8~=6.1 flake8-docstrings~=1.7 flake8-builtins~=2.1 +flake8-quotes~=3.3 pyproject-flake8~=6.1 pep8-naming~=0.13 pytest~=7.2