Skip to content

Commit 576ff98

Browse files
committed
isort and black
1 parent d8ba3fd commit 576ff98

5 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/isort-and-black-checks.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
python-version: 3.14
1717
- name: Install click, black and isort
1818
run: pip install 'click==8.2.1' 'black==25.11.0' 'isort==5.13.2'
19-
- name: Run isort --check .
20-
run: isort --check .
2119
- name: Run black --check --diff .
2220
run: black --check --diff .
2321
# - name: If needed, commit black changes to the pull request

pymathics/natlang/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
WordDefinition,
4949
WordList,
5050
)
51+
from pymathics.natlang.linguistic_data.translation import LanguageIdentify
5152
from pymathics.natlang.manipulate import Pluralize
5253
from pymathics.natlang.normalization import (
5354
DeleteStopwords,
@@ -65,8 +66,6 @@
6566
WordSimilarity,
6667
WordStem,
6768
)
68-
69-
from pymathics.natlang.linguistic_data.translation import LanguageIdentify
7069
from pymathics.natlang.version import __version__
7170

7271
pymathics_version_data = {

pymathics/natlang/nltk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"""
44
nltk backend
55
"""
6+
67
import re
78
from itertools import chain
89

910
import nltk
10-
from pattern.text.en import lexeme, pluralize
11-
1211
from mathics.builtin.codetables import iso639_3
1312
from mathics.core.atoms import String
1413
from mathics.core.builtin import Builtin, MessageException
1514
from mathics.core.evaluation import Evaluation
1615
from mathics.core.symbols import strip_context
16+
from pattern.text.en import lexeme, pluralize
1717

1818
# Don't consider this for user documentation
1919
no_doc = True

pymathics/natlang/spacy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from typing import Optional
1313

1414
import spacy
15-
1615
from mathics.core.atoms import String
1716
from mathics.core.builtin import Builtin
1817
from mathics.core.evaluation import Evaluation

pymathics/natlang/textual_analysis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import enchant
1414
import nltk
1515
import spacy
16-
1716
from mathics.core.atoms import Integer, Real, String
1817
from mathics.core.builtin import Builtin
1918
from mathics.core.evaluation import Evaluation

0 commit comments

Comments
 (0)