Skip to content

Commit

Permalink
Made the linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Dec 6, 2023
1 parent 4f0be07 commit eab4f05
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The worlds #1 unfinished contest logger <sup>*According to my daughter Corinna.<
- [Installing with pip](#installing-with-pip)
- [Ubuntu 22.04 LTS](#ubuntu-2204-lts)
- [Ubuntu 23.04](#ubuntu-2304)
- [Fedora 38](#fedora-38)
- [Fedora 38 \& 39](#fedora-38--39)
- [You may or may not get a warning message like](#you-may-or-may-not-get-a-warning-message-like)
- [Or this fan favorite](#or-this-fan-favorite)
- [Updating with pip/pipx](#updating-with-pippipx)
Expand Down Expand Up @@ -162,7 +162,7 @@ pipx install not1mm
pipx ensurepath
```

#### Fedora 38
#### Fedora 38 & 39

```bash
sudo dnf upgrade --refresh
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/10_10_fall_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""10 10 fall cw plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/10_10_spring_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""10 10 spring cw plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/10_10_summer_phone.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""10 10 summer cw plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/10_10_winter_phone.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""10 10 winter phone plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/arrl_dx_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""ARRL plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/arrl_dx_ssb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""ARRL plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
5 changes: 4 additions & 1 deletion not1mm/plugins/arrl_ss_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ def points(self):

def show_mults(self):
"""Return display string for mults"""
sql = f"select count(DISTINCT(Sect)) as mults from dxlog where ContestNR = {self.database.current_contest};"
sql = (
"select count(DISTINCT(Sect)) as mults from dxlog ",
f"where ContestNR = {self.database.current_contest};",
)
result = self.database.exec_sql(sql)
return int(result.get("mults", 0))

Expand Down
5 changes: 4 additions & 1 deletion not1mm/plugins/arrl_ss_phone.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ def points(self):

def show_mults(self):
"""Return display string for mults"""
sql = f"select count(DISTINCT(Sect)) as mults from dxlog where ContestNR = {self.database.current_contest};"
sql = (
"select count(DISTINCT(Sect)) as mults from dxlog ",
f"where ContestNR = {self.database.current_contest};",
)
result = self.database.exec_sql(sql)
return int(result.get("mults", 0))

Expand Down
7 changes: 5 additions & 2 deletions not1mm/plugins/canada_day.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""rac canada day"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down Expand Up @@ -183,7 +183,10 @@ def points(self):
def show_mults(self):
"""Return display string for mults"""

sql = "select count(DISTINCT(NR || ':' || Band || ':' || Mode)) as mult_count from dxlog where typeof(NR) = 'text';"
sql = (
"select count(DISTINCT(NR || ':' || Band || ':' || Mode)) ",
"as mult_count from dxlog where typeof(NR) = 'text';",
)
result = self.database.exec_sql(sql)
if result:
return result.get("mult_count", 0)
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/cq_wpx_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CQ WPX CW plugin"""

# pylint: disable=invalid-name, c-extension-no-member
# pylint: disable=invalid-name, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/cq_wpx_ssb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CQ WPX SSB plugin"""

# pylint: disable=invalid-name, c-extension-no-member
# pylint: disable=invalid-name, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/cq_ww_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CQ World Wide DX CW plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/cq_ww_ssb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CQ World Wide DX SSB plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
7 changes: 5 additions & 2 deletions not1mm/plugins/cwt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CWT plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down Expand Up @@ -115,7 +115,10 @@ def predupe(self):
"""prefill his exchange with last known values"""
if self.other_1.text() == "" and self.other_2.text() == "":
call = self.callsign.text().upper()
query = f"select NR from dxlog where Call = '{call}' and ContestName = 'CWOPS-CWT' order by ts desc;"
query = (
f"select NR from dxlog where Call = '{call}' ",
"and ContestName = 'CWOPS-CWT' order by ts desc;",
)
logger.debug(query)
result = self.database.exec_sql(query)
logger.debug("%s", f"{result}")
Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/general_logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""General Logging plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import logging

Expand Down
2 changes: 1 addition & 1 deletion not1mm/plugins/iaru_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Each IARU HQ and each IARU official once per band
"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down
3 changes: 2 additions & 1 deletion not1mm/plugins/jidx_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def cabrillo(self):
file=file_descriptor,
)
print(
f"ADDRESS: {self.station.get('City', '')}, {self.station.get('State', '')} {self.station.get('Zip', '')}",
f"ADDRESS: {self.station.get('City', '')}, {self.station.get('State', '')} ",
f"{self.station.get('Zip', '')}",
end="\r\n",
file=file_descriptor,
)
Expand Down
3 changes: 2 additions & 1 deletion not1mm/plugins/jidx_ph.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def cabrillo(self):
file=file_descriptor,
)
print(
f"ADDRESS: {self.station.get('City', '')}, {self.station.get('State', '')} {self.station.get('Zip', '')}",
f"ADDRESS: {self.station.get('City', '')}, {self.station.get('State', '')} ",
f"{self.station.get('Zip', '')}",
end="\r\n",
file=file_descriptor,
)
Expand Down
3 changes: 1 addition & 2 deletions not1mm/plugins/naqp_cw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""NAQP CW plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down Expand Up @@ -299,7 +299,6 @@ def cabrillo(self):
file=file_descriptor,
)
for contact in log:
# QSO: 28048 CW 2014-01-11 1804 N5KO TREY CA K8JQ STEVE WV
the_date_and_time = contact.get("TS", "")
themode = contact.get("Mode", "")
if themode == "LSB" or themode == "USB":
Expand Down
3 changes: 1 addition & 2 deletions not1mm/plugins/naqp_ssb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""NAQP SSB plugin"""

# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member
# pylint: disable=invalid-name, unused-argument, unused-variable, c-extension-no-member, unused-import

import datetime
import logging
Expand Down Expand Up @@ -299,7 +299,6 @@ def cabrillo(self):
file=file_descriptor,
)
for contact in log:
# QSO: 28048 CW 2014-01-11 1804 N5KO TREY CA K8JQ STEVE WV
the_date_and_time = contact.get("TS", "")
themode = contact.get("Mode", "")
if themode == "LSB" or themode == "USB":
Expand Down

0 comments on commit eab4f05

Please sign in to comment.