Closed loriab closed 6 years ago
1 Error | |
---|---|
:no_entry_sign: | Code style violations detected. |
2 Warnings | |
---|---|
:warning: | There are code changes, but no corresponding tests. Please include tests if this PR introduces any modifications in behavior. |
:warning: | Please update CHANGELOG.md with a description of your changes. If this PR is not a user-facing change (e.g. just refactoring), you can disregard this. |
Code style violations detected in the following files:
tools/py3.x-getkw.py
Execute one of the following actions and commit again:
yapf
on the offending filesgit apply patch
.--- tools/py3.x-getkw.py
+++ tools/py3.x-getkw.py
@@ -649,7 +649,7 @@
pass
elif len(arg) != k.nargs:
print("Invalid number of elements for key '%s',\
-line: %d" % (name, lineno(self.loc, self.strg)))
+line: %d" % (name, lineno(self.loc, self.strg)))
print(" -> %d required, %d given." % (k.nargs, len(arg)))
if strict:
sys.exit(1)
Here's an example of a CHANGELOG.md entry:
* [#160](https://github.com/PCMSolver/pcmsolver/pull/160): help internal pyparsing import - [@loriab](https://github.com/loriab)
Generated by :no_entry_sign: Danger
Merging #160 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #160 +/- ##
=======================================
Coverage 70.01% 70.01%
=======================================
Files 92 92
Lines 5592 5592
=======================================
Hits 3915 3915
Misses 1677 1677
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 0664b57...b7bbb5c. Read the comment docs.
Motivation and Context
Even if PYTHONPATH includes pcmsolver, when getkw tries to import pyparsing, it doesn't find it alongside b/c the interior of pcmsolver module isn't in PYTHONPATH. Thus all psi tests fail. Now getkw knows where to find pyparsing.
Here's what the pre-fix error looks like:
How Has This Been Tested?
All the pcm tests in psi4 work when
pcmsolver
module itself is in PYTHONPATH after these changes.Types of changes
Questions
Status