Skip to content

Commit 507effc

Browse files
authored
Additional flake8 standards (#615)
* Organize imports * Formatting * Update flake8 config
1 parent c5fec5c commit 507effc

26 files changed

+59
-88
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22
exclude = venv, __init__.py, build
3-
# To be added after refactoring code to be compliant: E501, F401, W191, W291, W293
4-
select = W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F403
3+
# To be added after refactoring code to be compliant: E501
4+
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F401, F403
55
count = True
66
max-complexity = 10
77
max-line-length = 100

ansys/mapdl/core/_commands/database/selecting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"""
44

55
from typing import Optional, Union
6-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
6+
7+
from ansys.mapdl.core.mapdl_types import MapdlInt
78

89

910
class Selecting:

ansys/mapdl/core/_commands/graphics_/style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import warnings
2-
32
from typing import Optional, Union
4-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
3+
4+
from ansys.mapdl.core.mapdl_types import MapdlInt
55

66

77
class Style:

ansys/mapdl/core/_commands/post1_/element_table.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from typing import Optional, Union
2-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
1+
from typing import Optional
2+
3+
from ansys.mapdl.core.mapdl_types import MapdlInt
34

45

56
class ElementTable:

ansys/mapdl/core/_commands/post26_/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from typing import Optional, Union
2-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
1+
from typing import Optional
2+
3+
from ansys.mapdl.core.mapdl_types import MapdlInt
34

45

56
class Setup:

ansys/mapdl/core/_commands/preproc/element_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"""
44
from typing import Optional, Union
55

6-
from ansys.mapdl.core._commands.parse import parse_e, parse_et
7-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
6+
from ansys.mapdl.core._commands.parse import parse_et
7+
from ansys.mapdl.core.mapdl_types import MapdlInt
88

99

1010
class ElementType:

ansys/mapdl/core/_commands/preproc/explicit_dynamics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import Optional, Union
1+
from typing import Optional
22

3-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
3+
from ansys.mapdl.core.mapdl_types import MapdlFloat, MapdlInt
44

55

66
class ExplicitDynamics:

ansys/mapdl/core/_commands/preproc/status.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from typing import Optional, Union
2-
3-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
1+
from typing import Optional
42

53

64
class Status:

ansys/mapdl/core/_commands/preproc/volumes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Optional, Union
22

3-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
43
from ansys.mapdl.core._commands import parse
4+
from ansys.mapdl.core.mapdl_types import MapdlInt
55

66

77
class Volumes:

ansys/mapdl/core/_commands/solution/analysis_options.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from typing import Optional, Union
2-
from ansys.mapdl.core.mapdl_types import MapdlInt, MapdlFloat
1+
from typing import Optional
2+
3+
from ansys.mapdl.core.mapdl_types import MapdlInt
34

45

56
class AnalysisOptions:

0 commit comments

Comments
 (0)