Skip to content

Commit

Permalink
ci(ruff): update ruff's configuration
Browse files Browse the repository at this point in the history
Update [ruff](https://github.com/astral-sh/ruff)'s configuration to use
new lint rules and disable obsolete ones.
  • Loading branch information
kennedykori committed Jul 14, 2024
1 parent 9074301 commit f585be2
Showing 1 changed file with 56 additions and 40 deletions.
96 changes: 56 additions & 40 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ exclude = [
"node_modules",
"venv",
]
indent-width = 4
line-length = 79
src = ["src", "test"]
target-version = "py311"
Expand All @@ -198,48 +199,63 @@ skip-magic-trailing-comma = false

[tool.ruff.lint]
ignore = [
"ANN002",
"ANN003",
"ANN101",
"ANN102",
"ANN204",
"COM812",
"D203",
"D213",
"ISC001",
"S101",
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"COM812", # missing-trailing-comma
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"ISC001", # single-line-implicit-string-concatenation
"S101", # assert - Use of assert detected
"TD003", # missing-todo-link
]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"D", # pydocstyle
"E", # pycodestyle Error
"EM", # flake8-errmsg
"ERA", # eradicate
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8 Naming
"PD", # pandas-vet
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle Warning
"YTT", # flake8-2020
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle Error
"EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # flake8-executable
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8 Naming
"PERF", # Perflint
"PD", # pandas-vet
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle Warning
"YTT", # flake8-2020
]

[tool.ruff.lint.flake8-quotes]
Expand Down

0 comments on commit f585be2

Please sign in to comment.