Skip to content

Commit 386df67

Browse files
committed
Add flake8 config and fix linting issues
- Add .flake8 config with max-line-length=120 (compatible with Black) - Remove unused imports (Dict, Any) from auth.py - All tests pass locally: 21/21 unit tests, 69% coverage - Black formatting check passes - Flake8 linting passes with no errors
1 parent 061bed7 commit 386df67

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.flake8

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[flake8]
2+
max-line-length = 120
3+
extend-ignore = E203, W503
4+
exclude =
5+
.git,
6+
__pycache__,
7+
build,
8+
dist,
9+
.eggs,
10+
*.egg-info,
11+
.venv,
12+
venv,
13+
.pytest_cache,
14+
htmlcov

ukfuelfinder/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import time
66
import threading
7-
from typing import Optional, Dict, Any
7+
from typing import Optional
88
import requests
99
from .exceptions import AuthenticationError, InvalidCredentialsError
1010

0 commit comments

Comments
 (0)