-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fixes #40
Minor fixes #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we split these fixes from fixes proposed by codacy.
Maybe we should also limit the staticmethod
rule in codacy...
pyEDAA/ProjectModel/Xilinx/Vivado.py
Outdated
@@ -149,7 +149,8 @@ def _ParseFile(self, fileNode, fileset): | |||
else: | |||
self._ParseDefaultFile(fileNode, filePath, fileset) | |||
|
|||
def _ParseVHDLFile(self, fileNode, path, fileset): | |||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it's possible to change it to staticmethod
I'm not a fan of it for this usecase.
With staticmethod
these internal helper function get public on the class and can be called from outside standalone, which makes no sense and has other risks.
tests/unit/Design.py
Outdated
@@ -140,7 +140,8 @@ def test_Files(self): | |||
|
|||
|
|||
class Validate(TestCase): | |||
def test_Design(self): | |||
@staticmethod | |||
def test_Design(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not good to convert tests to staticmethod
s.
Have you checked of pytest is finding these tests?
Codecov Report
@@ Coverage Diff @@
## dev #40 +/- ##
==========================================
+ Coverage 81.31% 81.37% +0.05%
==========================================
Files 9 9
Lines 1504 1503 -1
Branches 243 243
==========================================
Hits 1223 1223
+ Misses 213 212 -1
Partials 68 68
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I moved commits related to |
Bug Fixes
manual
togh
.