Skip to content

Commit 31630c0

Browse files
committed
Small lint changes..
* Add # noqa to the __version__ import * Remove #!/usr/bin/env python3 which is wrong here * Remove unused imports in buitins
1 parent 1d250ea commit 31630c0

47 files changed

Lines changed: 360 additions & 395 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mathics/builtin/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
3-
from mathics.core.expression import ensure_context
42

53
import glob
64
import importlib
75
import re
86
import os.path as osp
97
from mathics.settings import ENABLE_FILES_MODULE
10-
from mathics.version import __version__
8+
from mathics.version import __version__ # noqa used in loading to check consistency.
119

1210
# Get a list of file in this directory. We'll exclude from the start
1311
# files with leading characters we don't want like __init__ with its leading underscore.
@@ -24,8 +22,6 @@
2422
PatternObject,
2523
)
2624

27-
from mathics.settings import ENABLE_FILES_MODULE
28-
2925
exclude_files = set(("files", "codetables", "base", "importexport", "colors"))
3026
module_names = [
3127
f for f in __py_files__ if re.match("^[a-z0-9]+$", f) if f not in exclude_files

mathics/builtin/algebra.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32
"""
43
Algebraic Manipulation
54
"""
65

7-
from mathics.version import __version__
6+
from mathics.version import __version__ # noqa used in loading to check consistency.
87

98
from mathics.builtin.base import Builtin
109
from mathics.core.expression import Expression, Integer, Symbol, Atom, Number

mathics/builtin/arithmetic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32
# cython: language_level=3
43

@@ -8,7 +7,7 @@
87
Basic arithmetic functions, including complex number arithmetic.
98
"""
109

11-
from mathics.version import __version__
10+
from mathics.version import __version__ # noqa used in loading to check consistency.
1211
import sympy
1312
import mpmath
1413

mathics/builtin/assignment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32

4-
from mathics.version import __version__
3+
from mathics.version import __version__ # noqa used in loading to check consistency.
54
import mathics.builtin
65
from mathics.builtin.base import (
76
Builtin, BinaryOperator, PostfixOperator, PrefixOperator)

mathics/builtin/attributes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32

43
r"""
@@ -8,10 +7,9 @@
87
However, you can set any symbol as an attribute, in contrast to \Mathematica.
98
"""
109

11-
from mathics.version import __version__
10+
from mathics.version import __version__ # noqa used in loading to check consistency.
1211

1312
from mathics.builtin.base import Predefined, Builtin
14-
from mathics.builtin.evaluation import Sequence
1513
from mathics.core.expression import Expression, Symbol, SymbolNull, String
1614
from mathics.builtin.assignment import get_symbol_list
1715

mathics/builtin/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32

43
import re
@@ -10,7 +9,7 @@
109
import typing
1110
from typing import Any, cast
1211

13-
from mathics.version import __version__
12+
from mathics.version import __version__ # noqa used in loading to check consistency.
1413

1514
from mathics.core.definitions import Definition
1615
from mathics.core.parser.util import SystemDefinitions, PyMathicsDefinitions

0 commit comments

Comments
 (0)