-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
196 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.10 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.9.3 | ||
hooks: | ||
- id: bandit | ||
args: [-r, -c, .bandit.yml] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/psf/black.git | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.19.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py39-plus] | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
[tool.ruff.lint] | ||
extend-select = [ | ||
# flake8-bugbear | ||
"B", | ||
# flake8-comprehensions | ||
"C4", | ||
# pydocstyle | ||
"D", | ||
# flake8-future-annotations | ||
"FA", | ||
# flynt | ||
"FLY", | ||
# refurb | ||
"FURB", | ||
# isort | ||
"I", | ||
# flake8-implicit-str-concat | ||
"ISC", | ||
# flake8-logging | ||
"LOG", | ||
# Perflint | ||
"PERF", | ||
# pygrep-hooks | ||
"PGH", | ||
# flake8-pie | ||
"PIE", | ||
# pylint | ||
"PL", | ||
# flake8-use-pathlib | ||
"PTH", | ||
# flake8-pyi | ||
"PYI", | ||
# flake8-quotes | ||
"Q", | ||
# flake8-return | ||
"RET", | ||
# flake8-raise | ||
"RSE", | ||
# Ruff-specific rules | ||
"RUF", | ||
# flake8-bandit | ||
"S", | ||
# flake8-simplify | ||
"SIM", | ||
# flake8-slots | ||
"SLOT", | ||
# flake8-debugger | ||
"T10", | ||
# flake8-type-checking | ||
"TC", | ||
# pyupgrade | ||
"UP", | ||
# pycodestyle warnings | ||
"W", | ||
# flake8-2020 | ||
"YTT", | ||
] | ||
ignore = [ | ||
# Within an `except` clause, raise exceptions with `raise ... from` | ||
"B904", | ||
# Missing docstring in public module | ||
"D100", | ||
# Missing docstring in public class | ||
"D101", | ||
# Missing docstring in public method | ||
"D102", | ||
# Missing docstring in public function | ||
"D103", | ||
# Missing docstring in public package | ||
"D104", | ||
# Missing docstring in magic method | ||
"D105", | ||
# Missing docstring in public nested class | ||
"D106", | ||
# Missing docstring in __init__ | ||
"D107", | ||
# One-line docstring should fit on one line with quotes | ||
"D200", | ||
# No blank lines allowed after function docstring | ||
"D202", | ||
# 1 blank line required between summary line and description | ||
"D205", | ||
# Multi-line docstring closing quotes should be on a separate line | ||
"D209", | ||
# First line should end with a period | ||
"D400", | ||
# First line should be in imperative mood; try rephrasing | ||
"D401", | ||
# First line should not be the function's "signature" | ||
"D402", | ||
# First word of the first line should be properly capitalized | ||
"D403", | ||
# No blank lines allowed between a section header and its content | ||
"D412", | ||
# Too many return statements | ||
"PLR0911", | ||
# Too many branches | ||
"PLR0912", | ||
# Too many arguments in function definition | ||
"PLR0913", | ||
# Too many statements | ||
"PLR0915", | ||
# Magic value used in comparison | ||
"PLR2004", | ||
# String contains ambiguous {}. | ||
"RUF001", | ||
# Docstring contains ambiguous {}. | ||
"RUF002", | ||
# Comment contains ambiguous {}. | ||
"RUF003", | ||
# Mutable class attributes should be annotated with `typing.ClassVar` | ||
"RUF012", | ||
# Use of `assert` detected | ||
"S101", | ||
# Using lxml to parse untrusted data is known to be vulnerable to XML attacks | ||
"S320", | ||
|
||
# pending: https://github.com/scrapy/parsel/issues/312 | ||
"B019", | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/typing/selector.py" = ["F841"] | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "pep257" |
Oops, something went wrong.