chore: touch up Ruff, add exe check

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2023-04-18 12:00:35 -04:00
parent 440e18c275
commit 1512427455
3 changed files with 20 additions and 18 deletions
Regular → Executable
View File
Regular → Executable
View File
+20 -18
View File
@@ -120,26 +120,28 @@ messages_control.disable = [
[tool.ruff] [tool.ruff]
select = [ select = [
"E", "F", "W", # flake8 "E", "F", "W", # flake8
"B", "B904", # flake8-bugbear "B", # flake8-bugbear
"I", # isort "I", # isort
"ARG", # flake8-unused-arguments "ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions "C4", # flake8-comprehensions
"EM", # flake8-errmsg "EM", # flake8-errmsg
"ICN", # flake8-import-conventions "ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat "ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks "PGH", # pygrep-hooks
"PIE", # flake8-pie "PIE", # flake8-pie
"PLC", "PLE", "PLW", # pylint "PL", # pylint
"PT", # flake8-pytest-style "PT", # flake8-pytest-style
"RET", # flake8-return "RET", # flake8-return
"RUF", # Ruff-specific "RUF", # Ruff-specific
"SIM", # flake8-simplify "SIM", # flake8-simplify
"UP", # pyupgrade "UP", # pyupgrade
"YTT", # flake8-2020 "YTT", # flake8-2020
"EXE", # flake8-executable
] ]
extend-ignore = [ extend-ignore = [
"PLR2004", "E501", "PLR", # Design related pylint codes
"E501", # Line too long
"RET504", "RET505", "RET508", # else after control flow "RET504", "RET505", "RET508", # else after control flow
"PT004", # Rename suggested for returnless fixtures "PT004", # Rename suggested for returnless fixtures
"PT007", # False positive (fixed upstream) "PT007", # False positive (fixed upstream)