Skip to content

Commit f344bbf

Browse files
committed
style: linted
1 parent 462adbe commit f344bbf

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install:
2121

2222
lint:
2323
ruff format src/ tests/
24-
ruff check src/ tests/
24+
ruff check src/ tests/ --fix
2525
mypy --check-untyped-defs src/
2626

2727
test:

src/neosca/ns_lca/word_classifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def is_verb(self, lemma: str, pos: str) -> bool:
6262
# Don't have to filter auxiliary verbs, because the VERB tag covers
6363
# main verbs (content verbs) but it does not cover auxiliary verbs and
6464
# verbal copulas (in the narrow sense), for which there is the AUX tag.
65-
#
65+
#
6666
# https://universaldependencies.org/u/pos/VERB.html
6767
return pos == "VERB"
6868

src/neosca/ns_sca/ns_sca.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ def get_forest_frm_text(self, text: str, cache_path: Optional[str] = None) -> st
7272

7373
# }}}
7474
def get_forest_frm_file(self, file_path: str) -> str: # {{{
75-
from stanza import Document
76-
7775
from neosca.ns_nlp import Ns_NLP_Stanza
76+
from stanza import Document
7877

7978
if self.is_skip_parsing:
8079
# Assume input as parse trees, e.g., (ROOT (S (NP) (VP)))
@@ -181,7 +180,6 @@ def dump_values(self) -> None: # {{{
181180
if len(self.counters) == 0:
182181
raise ValueError("empty counter list")
183182

184-
185183
sname_value_maps: List[Dict[str, str]] = [
186184
counter.get_all_values(self.precision) for counter in self.counters
187185
]

src/neosca/ns_settings/ns_widget_settings_export.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from PySide6.QtWidgets import (
77
QComboBox,
8-
QFormLayout,
98
QGridLayout,
109
QGroupBox,
1110
QLabel,

tests/base_tmpl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import gc
2-
import io
32
import logging
43
import os.path as os_path
5-
import sys
64
import time
75
from unittest import TestCase
86

tests/test_main_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from neosca.ns_main_cli import Ns_Main_Cli
44

55
from .base_tmpl import BaseTmpl
6-
from .cmdline_tmpl import text as cmdline_text
76

87

98
class TestMain(BaseTmpl):

0 commit comments

Comments
 (0)