Skip to content

Commit 220c2ce

Browse files
Copilotthawn
andcommitted
Final flake8 config update: add E501 ignore for Black compatibility, remove unused Dict import
Co-authored-by: thawn <1308449+thawn@users.noreply.github.com>
1 parent 8cd83b0 commit 220c2ce

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

.flake8

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[flake8]
22
max-line-length = 88
33
# Black-compatible options
4-
extend-ignore = E203,W503
4+
# E203: Whitespace before ':' (conflicts with Black)
5+
# E501: Line too long (handled by Black where possible)
6+
# W503: Line break before binary operator (conflicts with Black)
7+
extend-ignore = E203,E501,W503
58

69
# Enforce all other errors
710
select = E,W,F,B,C

src/ttmp32gme/build/file_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import shutil
88
import subprocess
99
from pathlib import Path
10-
from typing import Dict, List, Optional
10+
from typing import List, Optional
1111

1212
logger = logging.getLogger(__name__)
1313

src/ttmp32gme/db_handler.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
from PIL import Image
1313
from pydantic import BaseModel, Field, field_validator
1414

15-
from .build.file_handler import (
16-
cleanup_filename,
17-
make_new_album_dir,
18-
remove_album,
19-
)
15+
from .build.file_handler import cleanup_filename, make_new_album_dir, remove_album
2016

2117
logger = logging.getLogger(__name__)
2218

src/ttmp32gme/ttmp32gme.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
from pathlib import Path
88
from typing import Any, Dict
99

10-
from flask import (
11-
Flask,
12-
jsonify,
13-
render_template,
14-
request,
15-
send_from_directory,
16-
)
10+
from flask import Flask, jsonify, render_template, request, send_from_directory
1711
from packaging.version import Version
1812
from pydantic import ValidationError
1913
from werkzeug.utils import secure_filename

0 commit comments

Comments
 (0)