JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.46k stars 187 forks source link

add pyinclude macro #948

Closed stevengj closed 2 years ago

stevengj commented 2 years ago

Add a @pyinclude("foo.py") macro, which is nearly equivalent to

py"""
$$(read("foo.py", String)
"""
codecov-commenter commented 2 years ago

Codecov Report

Merging #948 (de447f0) into master (429f251) will increase coverage by 0.09%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #948      +/-   ##
==========================================
+ Coverage   68.24%   68.33%   +0.09%     
==========================================
  Files          20       20              
  Lines        2012     2018       +6     
==========================================
+ Hits         1373     1379       +6     
  Misses        639      639              
Flag Coverage Δ
unittests 68.33% <100.00%> (+0.09%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/PyCall.jl 70.69% <ø> (ø)
src/pyeval.jl 72.07% <100.00%> (+1.59%) :arrow_up:

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 429f251...de447f0. Read the comment docs.