From 284c8bb7916b8722fc938a889df1743da4a083bf Mon Sep 17 00:00:00 2001 From: seylu <98249191+seyLu@users.noreply.github.com> Date: Mon, 23 Oct 2023 08:30:49 +0800 Subject: [PATCH] feat: add ruff config flake8-builtins --- pyproject.toml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aec6a2e..06ceb56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,22 +46,13 @@ path = "src/ghlabel/__about__.py" select = [ "E", # Pyflakes "F", # Pycodestyle + "A", # flake8-builtins "B", # flake8-bugbear "S", # flake8-bandit - "I001" # isort + "I" # isort ] - -# Never enforce `E501` (line length violations). ignore = ["E501"] -# Avoid trying to fix flake8-bugbear (`B`) violations. -unfixable = ["B"] - -# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`. -[tool.ruff.per-file-ignores] -"__init__.py" = ["E402", "F401"] -"path/to/file.py" = ["E402"] - [tool.mypy] strict = "True"