From 340affb875230bf7cd44012f0f23e4cac44cf713 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Sat, 2 Dec 2023 09:32:54 +0545 Subject: [PATCH] enable all ruff rules It's better to start with stricter set of rules, and ignore rules as the codebase grows. Teams can makee their own set of rules that they use. --- {{cookiecutter.project_name}}/pyproject.toml | 39 +------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index 362563c..41a0fc5 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -102,44 +102,7 @@ ignore = [ "SIM105", # suppressible-exception "SIM108", # if-else-block-instead-of-if-exp ] -select = [ - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "C90", # mccabe - "W", # pycodestyle - Warning - "E", # pycodestyle - Error - "F", # pyflakes - "I", # isort - "T10", # flake8-debugger - "S", # flake8-bandit - "PL", # pylint - "TCH", # flake8-type-checking - "UP", # pyupgrade - "N", # pep8-naming - "PIE", # flake8-pie - "ASYNC", # flake8-async - "EXE", # flake8-executable - "ISC", # flake8-implicit-str-concat - "SIM", # flake8-simplify - "ASYNC", # flake8-async - "INP", # flake8-no-pep420 - "EXE", # flake8-executable - "PYI", # flake8-pyi - "RSE", # flake8-raise - "SLOT", # flake8-slots - "PGH", # pygrep hooks - "FLY", # flynt - "RUF", # ruff - "G", # flake8-logging-format - "A", # flake8-builtins - "TRY", # tryceratops - "DTZ", # flake8-datetimez - "RET", # flake8-return - "PT", # flake8-pytest-style - "ARG", # flake8-unused-arguments - "SLF", # flake8-self - "ICN", # flake8-import-conventions -] +select = ["ALL"] show-source = true show-fixes = true