Remove periods from one-sentence comments
This commit is contained in:
parent
454c2898a0
commit
049a5f6f62
1 changed files with 308 additions and 308 deletions
|
|
@ -205,7 +205,7 @@ source = ["velofy"]
|
|||
# Source: https://flake8.pycqa.org/en/latest/user/configuration.html
|
||||
|
||||
# Include error classes only explicitly
|
||||
# to avoid forward compatibility issues.
|
||||
# to avoid forward compatibility issues
|
||||
select = [
|
||||
# =============
|
||||
# flake8's base
|
||||
|
|
@ -327,41 +327,41 @@ ignore = []
|
|||
extend-ignore = [
|
||||
# `ruff`'s A003 does this better, as it only flags actual shadowing
|
||||
"A003",
|
||||
# Too long line => Duplicate with E501.
|
||||
# Too long line => Duplicate with E501
|
||||
"B950",
|
||||
# PEP 257 documents the arguments of `__init__()` in its own docstring.
|
||||
# PEP 257 documents the arguments of `__init__()` in its own docstring
|
||||
"DOC301",
|
||||
# Comply with black's style.
|
||||
# Source: https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
|
||||
"E203", "W503",
|
||||
# `ruff`'s FBT003 does this better, as it allows builtins like `setattr()`.
|
||||
# `ruff`'s FBT003 does this better, as it allows builtins like `setattr()`
|
||||
"FBT003",
|
||||
# Every `.add()` looks like `pandas` to this rule (`ruff` omits it).
|
||||
# Every `.add()` looks like `pandas` to this rule (`ruff` omits it)
|
||||
"PD005",
|
||||
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`.
|
||||
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`
|
||||
"PT023",
|
||||
# Allow f-strings as the only type of string formatting.
|
||||
# Allow f-strings as the only type of string formatting
|
||||
"SFS301",
|
||||
# `bool()` around a comparison can be deliberate (`ruff` omits this rule).
|
||||
# `bool()` around a comparison can be deliberate (`ruff` omits this rule)
|
||||
"SIM901",
|
||||
# TODOs need neither an author nor an issue.
|
||||
# TODOs need neither an author nor an issue
|
||||
"T002", "T003",
|
||||
# Messages are written where the exceptions are raised.
|
||||
# Messages are written where the exceptions are raised
|
||||
"TRY003",
|
||||
]
|
||||
|
||||
per-file-ignores = [
|
||||
# Type annotations are not strictly enforced.
|
||||
# Type annotations are not strictly enforced
|
||||
"migrations/env.py:ANN0,ANN2",
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced.
|
||||
# - S608 => Do not worry about SQL injection here.
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced
|
||||
# - S608 => Do not worry about SQL injection here
|
||||
"migrations/versions/*.py:ANN0,ANN2,S608",
|
||||
# Type annotations are not strictly enforced.
|
||||
# Type annotations are not strictly enforced
|
||||
"noxfile.py:ANN0,ANN2",
|
||||
# - ANN0, ANN2, DOC106, DOC107 => Type annotations are not strictly enforced.
|
||||
# - D106 => The `Meta` class inside the factory_boy models do not need a docstring.
|
||||
# - S101 => `assert` statements are ok in the test suite.
|
||||
# - S311 => The `random` module is not used for cryptography.
|
||||
# - ANN0, ANN2, DOC106, DOC107 => Type annotations are not strictly enforced
|
||||
# - D106 => The `Meta` class inside the factory_boy models do not need a docstring
|
||||
# - S101 => `assert` statements are ok in the test suite
|
||||
# - S311 => The `random` module is not used for cryptography
|
||||
"tests/*.py:ANN0,ANN2,D106,DOC106,DOC107,S101,S311",
|
||||
]
|
||||
|
||||
|
|
@ -374,7 +374,7 @@ max-complexity = 10
|
|||
# Source: https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length
|
||||
max-line-length = 88
|
||||
|
||||
# Preview the code lines that cause errors.
|
||||
# Preview the code lines that cause errors
|
||||
show-source = true
|
||||
|
||||
# pydoclint
|
||||
|
|
@ -396,7 +396,7 @@ unused-arguments-ignore-abstract-functions = true
|
|||
# ==============================
|
||||
# flake8-pytest-style's settings
|
||||
# ==============================
|
||||
# Prefer @pytest.fixture over @pytest.fixture().
|
||||
# Prefer @pytest.fixture over @pytest.fixture()
|
||||
pytest-fixture-no-parentheses = true
|
||||
# Prefer @pytest.mark.parametrize(['param1', 'param2'], [(1, 2), (3, 4)])
|
||||
# over @pytest.mark.parametrize(('param1', 'param2'), ([1, 2], [3, 4]))
|
||||
|
|
@ -705,19 +705,19 @@ select = [
|
|||
]
|
||||
|
||||
extend-ignore = [
|
||||
# Let the formatter handle trailing commas.
|
||||
# Let the formatter handle trailing commas
|
||||
"COM812",
|
||||
# Thresholds like the ones in the maps read better as literals.
|
||||
# Thresholds like the ones in the maps read better as literals
|
||||
"PLR2004",
|
||||
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`.
|
||||
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`
|
||||
"PT023",
|
||||
# An `elif` after a `return` keeps a case distinction together.
|
||||
# An `elif` after a `return` keeps a case distinction together
|
||||
"RET505",
|
||||
# Some "# noqa" comments are only for `flake8`, which `ruff` cannot know.
|
||||
# Some "# noqa" comments are only for `flake8`, which `ruff` cannot know
|
||||
"RUF100",
|
||||
# TODOs need neither an author nor an issue.
|
||||
# TODOs need neither an author nor an issue
|
||||
"TD002", "TD003",
|
||||
# Messages are written where the exceptions are raised.
|
||||
# Messages are written where the exceptions are raised
|
||||
"TRY003",
|
||||
]
|
||||
|
||||
|
|
@ -731,21 +731,21 @@ external = [
|
|||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
|
||||
# Type annotations are not strictly enforced.
|
||||
# Type annotations are not strictly enforced
|
||||
"migrations/env.py" = ["ANN0", "ANN2"]
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced.
|
||||
# - S608 => Do not worry about SQL injection here.
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced
|
||||
# - S608 => Do not worry about SQL injection here
|
||||
"migrations/versions/*.py" = ["ANN0", "ANN2", "S608"]
|
||||
# Type annotations are not strictly enforced.
|
||||
# Type annotations are not strictly enforced
|
||||
"noxfile.py" = ["ANN0", "ANN2"]
|
||||
# `print()` is ok in ad-hoc scripts
|
||||
"scripts/**" = ["T20"]
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced.
|
||||
# - D106 => The `Meta` class inside the factory_boy models do not need a docstring.
|
||||
# - PLR0913, PLR0917 => `pytest` passes fixtures as arguments.
|
||||
# - S101 => `assert` statements are ok in the test suite.
|
||||
# - S311 => The `random` module is not used for cryptography.
|
||||
# - SLF001 => Tests may set up and inspect private members.
|
||||
# - ANN0, ANN2 => Type annotations are not strictly enforced
|
||||
# - D106 => The `Meta` class inside the factory_boy models do not need a docstring
|
||||
# - PLR0913, PLR0917 => `pytest` passes fixtures as arguments
|
||||
# - S101 => `assert` statements are ok in the test suite
|
||||
# - S311 => The `random` module is not used for cryptography
|
||||
# - SLF001 => Tests may set up and inspect private members
|
||||
"tests/**/*.py" = ["ANN0", "ANN2", "D106", "PLR0913", "PLR0917", "S101", "S311", "SLF001"]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue