• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SPF-OST / pytrnsys_gui / 11662562960

29 Oct 2024 03:09PM UTC coverage: 67.508% (-0.08%) from 67.591%
11662562960

push

github

web-flow
Merge pull request #564 from SPF-OST/560-black-change-line-length-to-pep8-standard-of-79-and-check-ci-reaction

changed line length in black to 79

1054 of 1475 new or added lines in 174 files covered. (71.46%)

150 existing lines in 74 files now uncovered.

10399 of 15404 relevant lines covered (67.51%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/trnsysGUI/components/plugin/plugin.py
1
from __future__ import annotations
1✔
2

3
import collections.abc as _cabc
1✔
4
import dataclasses as _dc
1✔
5
import abc as _abc
1✔
6
import typing as _tp
1✔
7

8
import trnsysGUI.internalPiping as _ip
1✔
9

10
from . import graphics as _graphics
1✔
11

12
if _tp.TYPE_CHECKING:
1✔
13
    import trnsysGUI.BlockItem as _bi
×
14
    import trnsysGUI.PortItemBase as _pib
×
15

16

17
@_dc.dataclass
1✔
18
class CreatedInternalPiping:
1✔
19
    inputPorts: _cabc.Sequence[_pib.PortItemBase]
1✔
20
    outputPorts: _cabc.Sequence[_pib.PortItemBase]
1✔
21
    internalPiping: _ip.InternalPiping
1✔
22

23
    @staticmethod
1✔
24
    def empty() -> CreatedInternalPiping:
1✔
NEW
25
        emptyCreatedInternalPiping = CreatedInternalPiping(
×
26
            [], [], _ip.InternalPiping([], {})
27
        )
UNCOV
28
        return emptyCreatedInternalPiping
×
29

30

31
class AbstractInternalPipingFactory(_abc.ABC):
1✔
32
    @_abc.abstractmethod
33
    def createInternalPiping(
34
        self, blockItem: _bi.BlockItem
35
    ) -> CreatedInternalPiping:
36
        raise NotImplementedError()
37

38

39
@_dc.dataclass
1✔
40
class Plugin:
1✔
41
    typeName: str
1✔
42
    baseDisplayName: str
1✔
43
    graphics: _graphics.Graphics
1✔
44
    internalPipingFactory: AbstractInternalPipingFactory
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc