Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit 93cfc99

Browse files
committed
Fixed build_devenv target and flake8 test
1 parent 828fe6b commit 93cfc99

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ endif
1313
BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
1414

1515
ifeq ($(OS),Windows_NT)
16-
ifeq ($(shell if test -d $(VENV_DIR); then echo "exist";fi),exist)
1716
VENV_BIN = $(VENV_DIR)/Scripts
18-
PYTHON = $(VENV_BIN)/python.exe
1917
PIP = $(VENV_BIN)/pip.exe
2018
FLAKE8 = $(VENV_BIN)/flake8.exe
19+
ifeq ($(shell if test -d $(VENV_DIR); then echo "exist";fi),exist)
20+
PYTHON = $(VENV_BIN)/python.exe
2121
endif
2222
else
23-
ifeq ($(shell if test -d $(VENV_DIR); then echo "exist";fi),exist)
2423
VENV_BIN = $(VENV_DIR)/bin
25-
PYTHON = $(VENV_BIN)/python
2624
PIP = $(VENV_BIN)/pip
2725
FLAKE8 = $(VENV_BIN)/flake8
26+
ifeq ($(shell if test -d $(VENV_DIR); then echo "exist";fi),exist)
27+
PYTHON = $(VENV_BIN)/python
2828
endif
2929
endif
3030

@@ -54,7 +54,7 @@ release:
5454

5555
test: all
5656
$(FLAKE8) ./src --count --select=E9,F63,F7,F82 --show-source --statistics
57-
$(FLAKE8) ./src --count --max-complexity=20 --max-line-length=120 --statistics
57+
$(FLAKE8) ./src --count --max-complexity=20 --ignore=E402 --max-line-length=120 --statistics
5858
PYTHONPATH=./src $(PYTHON) -m unittest discover -s ./test
5959

6060
build_devenv:

src/hamcc/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def read_adi(file: str) -> tuple[dict[str, str], dict[str, tuple[str, str]]]:
7878
return last_qso, worked_calls
7979

8080

81+
# flake8: noqa: C901
8182
def command_console(stdscr: window, file, own_call, own_loc, own_name, append=False,
8283
contest_id='', qso_number=1, records: list = []):
8384
adi_f = None

0 commit comments

Comments
 (0)