-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't workingdocstringRelated to docstring linting or formattingRelated to docstring linting or formatting
Description
I am seeing D4-3 not hitting a number of cases where flake8 is.
To replicate ruff test.py --select D403 -n --isolated
Code:
"""Contains tests for the configuration library."""
import unittest
class BasicConfigurationTest(unittest.TestCase):
"""Doc string."""
@classmethod
def setUpClass(cls):
"""runs just once when the class instance is setup."""
passI expect the docstring for setUpClass to catch the lower case runs, which is a D403 error
Flake8 catches the error:
poetry run flake8 test.py
test.py:10:1: D403 First word of the first line should be properly capitalized
I am using ruff version
poetry run ruff --version
ruff 0.0.247
pyproject.toml setup
[tool.ruff.pycodestyle]
max-doc-length = 120
[tool.ruff]
line-length = 120
exclude = [".venv"]
ignore = [
"D105",
"D107",
"D401",
"E501",
"W505",
]
select = [
"B",
# "C",
"D",
"D415",
"E",
"F",
"N",
"W",
]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"dejavu/__init__.py" = ["F401"]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocstringRelated to docstring linting or formattingRelated to docstring linting or formatting