From c32566527ab21d377e1026c00afaf95744518601 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Mon, 30 Nov 2026 23:37:54 +0100 Subject: [PATCH] Enable EXE in `flake8` and `ruff` --- noxfile.py | 1 + pyproject.toml | 5 +++++ uv.lock | 14 ++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/noxfile.py b/noxfile.py index 60533f4..e18c535 100644 --- a/noxfile.py +++ b/noxfile.py @@ -203,6 +203,7 @@ def lint_code(session: nox.Session) -> None: "flake8-debugger", "flake8-docstrings", "flake8-errmsg", + "flake8-executable", "flake8-implicit-str-concat", "flake8-pyproject", "flake8-pytest-style", diff --git a/pyproject.toml b/pyproject.toml index e321a64..9697100 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,6 +103,7 @@ dev = [ "flake8-debugger (>=4.1.2,<5.0.0)", "flake8-docstrings (>=1.7.0,<2.0.0)", "flake8-errmsg (>=0.7.0,<0.8.0)", + "flake8-executable (>=2.1.3,<3.0.0)", "flake8-implicit-str-concat (>=0.7.0,<0.8.0)", "flake8-pyproject (>=1.2.4,<2.0.0)", "flake8-pytest-style (>=2.2.0,<3.0.0)", @@ -230,6 +231,8 @@ select = [ "D1", "D2", "D3", "D4", # flake8-errmsg => Shorter tracebacks "EM", + # flake8-executable => Consistent shebangs and executable bits + "EXE", # flake8-implicit-str-concat => Unified string concatenation "ISC", # flake8-pytest-style => Enforce a consistent style with pytest @@ -520,6 +523,8 @@ select = [ "E", "W", # flake8-errmsg => Shorter tracebacks "EM", + # flake8-executable => Consistent shebangs and executable bits + "EXE", # pyflakes => Basic errors "F", # flake8-boolean-trap => Keyword-only flags diff --git a/uv.lock b/uv.lock index a17d31d..7b762bb 100644 --- a/uv.lock +++ b/uv.lock @@ -1030,6 +1030,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/62/47/2d71411967eabc97dc520fc80dc9ea275b07c0357c290e0e8ca1829bc448/flake8_errmsg-0.7.0-py3-none-any.whl", hash = "sha256:406c35d07fc7edc4deb2091e0d9a7177a2102d304f58d56ef18f782834a959f0", size = 9871, upload-time = "2026-06-18T14:56:01.245Z" }, ] +[[package]] +name = "flake8-executable" +version = "2.1.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "flake8" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3b/41/f0687401d76d6031aa5fc447615e1a337308a9c5c586913f70c5a2abe832/flake8-executable-2.1.3.tar.gz", hash = "sha256:619fe023e00c3d8e5113521d7200e1ebb04587c12d157f9a2fb167feb8cae66b", size = 23035, upload-time = "2023-01-23T00:39:57.537Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/d7/311104f82226a6b108f7f05c56cfb7fe773847a879f622d6450ab0a227b3/flake8_executable-2.1.3-py3-none-any.whl", hash = "sha256:f0a66c97c3b99ce63bc1f01ce602d6bd048e4fc5dc0d7a13be2bfa3deb023a34", size = 35302, upload-time = "2023-01-23T00:39:55.485Z" }, +] + [[package]] name = "flake8-implicit-str-concat" version = "0.7.0" @@ -3869,6 +3881,7 @@ dev = [ { name = "flake8-debugger" }, { name = "flake8-docstrings" }, { name = "flake8-errmsg" }, + { name = "flake8-executable" }, { name = "flake8-implicit-str-concat" }, { name = "flake8-pyproject" }, { name = "flake8-pytest-style" }, @@ -3942,6 +3955,7 @@ dev = [ { name = "flake8-debugger", specifier = ">=4.1.2,<5.0.0" }, { name = "flake8-docstrings", specifier = ">=1.7.0,<2.0.0" }, { name = "flake8-errmsg", specifier = ">=0.7.0,<0.8.0" }, + { name = "flake8-executable", specifier = ">=2.1.3,<3.0.0" }, { name = "flake8-implicit-str-concat", specifier = ">=0.7.0,<0.8.0" }, { name = "flake8-pyproject", specifier = ">=1.2.4,<2.0.0" }, { name = "flake8-pytest-style", specifier = ">=2.2.0,<3.0.0" },