Revert "feat: Introduce isort and Python-based code quality tools (#446)"

This reverts commit cfe2b900c7.

The custom scripts introduced to auto-format imports (to enforce project guidelines) caused issues. Specifically, isort’s hardcoded behavior for expanded standard library imports with “as” imports led to unintended formatting. This commit reverts those changes and removes the custom scripts, restoring the project to its previous, stable state.
This commit is contained in:
Jens Bergmann
2025-03-13 11:55:31 +01:00
committed by GitHub
parent 21f118ba8e
commit 1b004a2a3e
5 changed files with 2 additions and 132 deletions

View File

@@ -56,7 +56,6 @@ dev = [
"pylint",
"mypy",
"pyright",
"isort>=5.13.2",
# security:
"bandit",
# packaging:
@@ -84,8 +83,8 @@ app = "python -m kleinanzeigen_bot"
compile.cmd = "python -O -m PyInstaller pyinstaller.spec --clean"
compile.env = {PYTHONHASHSEED = "1", SOURCE_DATE_EPOCH = "0"} # https://pyinstaller.org/en/stable/advanced-topics.html#creating-a-reproducible-build
debug = "python -m pdb -m kleinanzeigen_bot"
format = "python -m scripts.format_code"
lint = "python -m scripts.lint_code"
format = "autopep8 --recursive --in-place src tests --verbose"
lint = {shell = "pylint -v src tests && autopep8 -v --exit-code --recursive --diff src tests && mypy" }
audit = "bandit -c pyproject.toml -r src"
test = "python -m pytest --capture=tee-sys -v"
utest = "python -m pytest --capture=tee-sys -v -m 'not itest'"
@@ -267,15 +266,3 @@ filterwarnings = [
"ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning",
"ignore::DeprecationWarning"
]
# Add isort configuration to format imports
[tool.isort]
profile = "black"
line_length = 160
combine_as_imports = true
combine_star = true
multi_line_output = 3
force_grid_wrap = 0
ensure_newline_before_comments = true
no_lines_before = ["LOCALFOLDER"]
combine_straight_imports = true