diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 718572b..b6aecd0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,11 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "monthly" + groups: + dependencies: + patterns: + - "*" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6adfbad..500eb4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,23 @@ repos: entry: make test/tomlsort language: system pass_filenames: false + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0 , 5 Oct 2024 + hooks: + - id: check-added-large-files + args: ['--maxkb=100'] + - id: check-case-conflict + - id: check-merge-conflict + - id: check-shebang-scripts-are-executable + - id: check-json + - id: check-yaml + - id: end-of-file-fixer + exclude: '\.(diff|patch)$' + - id: trailing-whitespace + exclude: '\.(diff|patch)$' + +ci: + autoupdate_schedule: quarterly + autoupdate_commit_msg: "Update pre-commit version" + +# vim: set nowrap tw=100: diff --git a/README.md b/README.md index 91c13e6..b70023b 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,3 @@ the most verbose output and sending stdout/stderr to the console, run: $ . .venv/bin/activate $ pytest -vv -s test/test_process.py -k test_context ``` - diff --git a/celerpy/__init__.py b/celerpy/__init__.py index 0637e3b..437a732 100644 --- a/celerpy/__init__.py +++ b/celerpy/__init__.py @@ -2,8 +2,11 @@ # See the top-level LICENSE file for details. # SPDX-License-Identifier: Apache-2.0 try: - from . import _version + from . import _version # type: ignore[attr-defined] __version__ = _version.__version__ except: # noqa: E722 __version__ = "0.0.0-dev" + +# Expose __version__ for type checkers +__all__ = ["__version__"] diff --git a/celerpy/_resources/glasbey-dark.txt b/celerpy/_resources/glasbey-dark.txt index 3d57910..1da5de3 100644 --- a/celerpy/_resources/glasbey-dark.txt +++ b/celerpy/_resources/glasbey-dark.txt @@ -1,41 +1,41 @@ -0.843137 0. 0. -0.54902 0.235294 1. -0.007843 0.533333 0. +0.843137 0. 0. +0.54902 0.235294 1. +0.007843 0.533333 0. 0. 0.67451 0.780392 -0.905882 0.647059 0. +0.905882 0.647059 0. 1. 0.498039 0.819608 0.423529 0. 0.309804 -0.345098 0.231373 0. -0. 0.341176 0.34902 +0.345098 0.231373 0. +0. 0.341176 0.34902 0.082353 0.882353 0.552941 0. 0. 0.866667 0.635294 0.462745 0.415686 -0.737255 0.717647 1. -0.752941 0.015686 0.72549 -0.392157 0.329412 0.45098 -0.47451 0. 0. +0.737255 0.717647 1. +0.752941 0.015686 0.72549 +0.392157 0.329412 0.45098 +0.47451 0. 0. 0.027451 0.454902 0.847059 0.45098 0.607843 0.490196 1. 0.470588 0.321569 -0. 0.294118 0. +0. 0.294118 0. 0.560784 0.482353 0.003922 0.952941 0. 0.482353 -0.560784 0.729412 0. +0.560784 0.729412 0. 0.65098 0.482353 0.721569 0.352941 0.007843 0.639216 0.890196 0.686275 0.686275 0.627451 0.227451 0.321569 0.635294 0.784314 0.784314 -0.619608 0.294118 0. +0.619608 0.294118 0. 0.329412 0.403922 0.270588 0.733333 0.764706 0.537255 0.372549 0.482353 0.533333 0.376471 0.219608 0.235294 -0.513725 0.533333 1. -0.223529 0. 0. -0.890196 0.32549 1. +0.513725 0.533333 1. +0.223529 0. 0. +0.890196 0.32549 1. 0.188235 0.32549 0.509804 -0.498039 0.792157 1. +0.498039 0.792157 1. 0.772549 0.4 0.560784 0. 0.505882 0.415686 0.572549 0.619608 0.717647 @@ -43,12 +43,12 @@ 0.498039 0.168627 0.556863 0. 0.745098 0.643137 0.176471 0.694118 0.321569 -0.305882 0.2 1. -0. 0.898039 0. +0.305882 0.2 1. +0. 0.898039 0. 1. 0. 0.807843 0.784314 0.345098 0.282353 -0.898039 0.611765 1. -0.113725 0.631373 1. +0.898039 0.611765 1. +0.113725 0.631373 1. 0.431373 0.439216 0.670588 0.784314 0.603922 0.411765 0.470588 0.341176 0.231373 @@ -60,8 +60,8 @@ 0.623529 0.007843 0.454902 0.580392 0.631373 0.313725 0.215686 0.266667 0.145098 -0.686275 0.427451 1. -0.34902 0.427451 0. +0.686275 0.427451 1. +0.34902 0.427451 0. 1. 0.192157 0.278431 0.513725 0.501961 0.341176 0. 0.427451 0.180392 @@ -75,44 +75,44 @@ 0. 0.533333 0.694118 0.796078 0. 0.266667 1. 0.627451 0.337255 -0.921569 0.305882 0. -0.423529 0.592157 0. +0.921569 0.305882 0. +0.423529 0.592157 0. 0.32549 0.52549 0.286275 -0.458824 0.352941 0. -0.784314 0.768627 0.25098 +0.458824 0.352941 0. +0.784314 0.768627 0.25098 0.572549 0.827451 0.439216 0.294118 0.596078 0.580392 -0.301961 0.137255 0.05098 +0.301961 0.137255 0.05098 0.380392 0.203922 0.360784 0.517647 0. 0.811765 0.545098 0. 0.192157 0.623529 0.431373 0.196078 -0.67451 0.517647 0.6 +0.67451 0.517647 0.6 0.776471 0.192157 0.537255 0.007843 0.329412 0.219608 0.031373 0.419608 0.517647 -0.529412 0.658824 0.92549 +0.529412 0.658824 0.92549 0.392157 0.4 0.937255 0.768627 0.364706 0.729412 0.003922 0.623529 0.439216 -0.505882 0.317647 0.34902 -0.513725 0.435294 0.54902 +0.505882 0.317647 0.34902 +0.513725 0.435294 0.54902 0.701961 0.752941 0.854902 0.72549 0.568627 0.160784 1. 0.592157 0.698039 0.654902 0.576471 0.882353 0.411765 0.552941 0.745098 0.298039 0.313725 0.003922 -0.282353 0.007843 0.8 +0.282353 0.007843 0.8 0.380392 0. 0.431373 -0.270588 0.415686 0.4 +0.270588 0.415686 0.4 0.615686 0.341176 0.262745 0.482353 0.67451 0.709804 0.803922 0.517647 0.741176 0. 0.329412 0.756863 0.482353 0.184314 0.309804 -0.984314 0.486275 0. -0.203922 0.752941 0. +0.984314 0.486275 0. +0.203922 0.752941 0. 1. 0.611765 0.533333 0.882353 0.717647 0.411765 0.32549 0.380392 0.466667 @@ -123,7 +123,7 @@ 0.768627 0.466667 0.313725 0.819608 0.282353 0.407843 0.431373 0. 0.921569 -0.121569 0.203922 0. +0.121569 0.203922 0. 0.756863 0.254902 0.015686 0.427451 0.835294 0.760784 0.27451 0.439216 0.623529 @@ -131,29 +131,29 @@ 0.039216 0.509804 0.537255 0.686275 0.65098 0.003922 0.65098 0.360784 0.419608 -0.996078 0.466667 1. +0.996078 0.466667 1. 0.545098 0.521569 0.682353 0.780392 0.498039 0.913725 0.603922 0.670588 0.521569 -0.529412 0.423529 0.85098 +0.529412 0.423529 0.85098 0.003922 0.729412 0.968627 0.686275 0.368627 0.823529 0.34902 0.317647 0.168627 0.713725 0. 0.372549 0.486275 0.713725 0.415686 -0.286275 0.521569 1. +0.286275 0.521569 1. 0. 0.760784 0.509804 0.823529 0.584314 0.670588 0.639216 0.294118 0.658824 0.890196 0.023529 0.890196 -0.086275 0.639216 0. -0.223529 0.180392 0. -0.517647 0.188235 0.2 +0.086275 0.639216 0. +0.223529 0.180392 0. +0.517647 0.188235 0.2 0.368627 0.584314 0.666667 -0.352941 0.062745 0. -0.482353 0.27451 0. +0.352941 0.062745 0. +0.482353 0.27451 0. 0.435294 0.435294 0.192157 -0.2 0.345098 0.14902 +0.2 0.345098 0.14902 0.301961 0.376471 0.713725 0.635294 0.584314 0.392157 0.384314 0.25098 0.156863 @@ -161,10 +161,10 @@ 0.439216 0.666667 0.815686 0.180392 0.419608 0.305882 0.45098 0.686275 0.619608 -0.992157 0.082353 0. +0.992157 0.082353 0. 0.847059 0.705882 0.572549 0.478431 0.537255 0.231373 -0.490196 0.776471 0.85098 +0.490196 0.776471 0.85098 0.862745 0.568627 0.215686 0.92549 0.380392 0.368627 0.92549 0.372549 0.831373 @@ -172,18 +172,18 @@ 0.65098 0.423529 0.596078 0. 0.592157 0.266667 0.729412 0.372549 0.133333 -0.737255 0.678431 0.32549 +0.737255 0.678431 0.32549 0.533333 0.847059 0.188235 -0.529412 0.207843 0.45098 +0.529412 0.207843 0.45098 0.682353 0.658824 0.823529 0.890196 0.54902 0.388235 -0.819608 0.694118 0.92549 +0.819608 0.694118 0.92549 0.215686 0.258824 0.623529 0.227451 0.745098 0.760784 0.4 0.615686 0.301961 -0.619608 0.011765 0.6 +0.619608 0.011765 0.6 0.305882 0.305882 0.478431 -0.482353 0.298039 0.52549 +0.482353 0.298039 0.52549 0.764706 0.207843 0.192157 0.552941 0.4 0.466667 0.666667 0. 0.176471 @@ -191,30 +191,30 @@ 0.003922 0.509804 0.301961 0.45098 0.290196 0.403922 0.447059 0.466667 0.568627 -0.431373 0. 0.6 +0.431373 0. 0.6 0.627451 0.729412 0.321569 0.882353 0.431373 0.192157 0.772549 0.415686 0.443137 0.427451 0.356863 0.588235 0.639216 0.235294 0.454902 -0.196078 0.384314 0. +0.196078 0.384314 0. 0.533333 0. 0.313725 0.2 0.345098 0.411765 0.729412 0.552941 0.486275 -0.098039 0.34902 1. +0.098039 0.34902 1. 0.568627 0.572549 0.007843 0.172549 0.545098 0.835294 -0.090196 0.14902 1. -0.129412 0.827451 1. +0.090196 0.14902 1. +0.129412 0.827451 1. 0.643137 0.564706 0.686275 0.545098 0.427451 0.309804 0.368627 0.129412 0.243137 0.862745 0.011765 0.701961 0.435294 0.341176 0.792157 0.396078 0.156863 0.129412 -0.678431 0.466667 0. +0.678431 0.466667 0. 0.639216 0.74902 0.968627 -0.709804 0.517647 0.27451 +0.709804 0.517647 0.27451 0.592157 0.219608 0.862745 0.698039 0.317647 0.580392 0.447059 0.258824 0.639216 @@ -222,7 +222,7 @@ 0.541176 0.439216 0.694118 0.419608 0.686275 0.211765 0.352941 0.478431 0.788235 -0.780392 0.623529 1. +0.780392 0.623529 1. 0.337255 0.517647 0.101961 0. 0.839216 0.654902 0.509804 0.278431 0.223529 @@ -235,13 +235,13 @@ 0.729412 0.572549 0.811765 0.203922 0.345098 0.301961 0.972549 0.501961 0.490196 -0.568627 0.203922 0. -0.701961 0.803922 0. +0.568627 0.203922 0. +0.701961 0.803922 0. 0.180392 0.623529 0.827451 0.47451 0.545098 0.623529 0.317647 0.505882 0.490196 0.756863 0.211765 0.843137 -0.92549 0.019608 0.32549 +0.92549 0.019608 0.32549 0.72549 0.67451 0.494118 0.282353 0.439216 0.196078 0.517647 0.584314 0.396078 diff --git a/celerpy/_resources/glasbey-light.txt b/celerpy/_resources/glasbey-light.txt index 66367b9..7395b31 100644 --- a/celerpy/_resources/glasbey-light.txt +++ b/celerpy/_resources/glasbey-light.txt @@ -1,47 +1,47 @@ -0.843137 0. 0. -0.007843 0.533333 0. -0.713725 0. 1. +0.843137 0. 0. +0.007843 0.533333 0. +0.713725 0. 1. 0.023529 0.67451 0.776471 -0.596078 1. 0. +0.596078 1. 0. 1. 0.647059 0.188235 1. 0.560784 0.784314 0.47451 0.321569 0.372549 0. 0.996078 0.811765 -0.690196 0.647059 1. +0.690196 0.647059 1. 0.580392 0.678431 0.517647 -0.603922 0.411765 0. +0.603922 0.411765 0. 0.215686 0.415686 0.384314 -0.827451 0. 0.54902 +0.827451 0. 0.54902 0.996078 0.960784 0.564706 -0.784314 0.435294 0.4 -0.619608 0.890196 1. -0. 0.788235 0.27451 +0.784314 0.435294 0.4 +0.619608 0.890196 1. +0. 0.788235 0.27451 0.662745 0.466667 0.678431 0.721569 0.733333 0.007843 0.956863 0.752941 0.694118 1. 0.156863 0.992157 -0.952941 0.807843 1. +0.952941 0.807843 1. 0. 0.623529 0.490196 -1. 0.384314 0. +1. 0.384314 0. 0.337255 0.396078 0.168627 0.588235 0.247059 0.121569 0.568627 0.192157 0.560784 1. 0.203922 0.396078 0.627451 0.894118 0.572549 0.552941 0.607843 0.698039 -0.509804 0.568627 0.14902 +0.509804 0.568627 0.14902 0.682353 0.035294 0.247059 0.470588 0.780392 0.733333 0.737255 0.572549 0.345098 -0.898039 0.560784 1. -0.447059 0.72549 1. +0.898039 0.560784 1. +0.447059 0.72549 1. 0.776471 0.647059 0.756863 1. 0.568627 0.443137 0.827451 0.764706 0.490196 0.741176 0.933333 0.858824 0.419608 0.521569 0.407843 0.572549 0.431373 0.337255 -0.976471 1. 0. +0.976471 1. 0. 0.729412 0.760784 0.878431 0.678431 0.341176 0.490196 1. 0.807843 0.011765 @@ -49,7 +49,7 @@ 0.760784 0.341176 0.011765 0.364706 0.54902 0.564706 0.760784 0.266667 0.741176 -0. 0.458824 0.25098 +0. 0.458824 0.25098 0.729412 0.435294 0.996078 0. 0.831373 0.580392 0. 1. 0.462745 @@ -58,7 +58,7 @@ 0. 0.921569 0.933333 0.858824 0.494118 0.003922 0.972549 0.458824 0.541176 -0.72549 0.588235 0. +0.72549 0.588235 0. 0.788235 0.258824 0.282353 0. 0.815686 0.980392 0.462745 0.345098 0.152941 @@ -74,32 +74,32 @@ 1. 0.729412 0.843137 0.717647 0.811765 0.670588 0.592157 0.254902 0.305882 -0.407843 0.670588 0. +0.407843 0.670588 0. 0.996078 0.882353 0.698039 1. 0.215686 0.160784 0.501961 0.478431 0.243137 -0.843137 0.909804 1. +0.843137 0.909804 1. 0.654902 0.584314 0.776471 0.494118 0.647059 0.607843 0.819608 0.513725 0.643137 0.329412 0.509804 0.231373 -0.901961 0.662745 0.45098 -0.611765 1. 1. +0.901961 0.662745 0.45098 +0.611765 1. 1. 0.854902 0.333333 0.505882 0.019608 0.705882 0.666667 1. 0.670588 0.964706 0.819608 0.686275 0.937255 0.854902 0.007843 0.368627 -0.67451 0.105882 0.07451 +0.67451 0.105882 0.07451 0.376471 0.701961 0.521569 0.835294 0.258824 0.992157 -0.678431 0.670588 0.34902 +0.678431 0.670588 0.34902 0.984314 0.615686 0.654902 0.701961 0.447059 0.235294 -0.94902 0.415686 0.32549 +0.94902 0.415686 0.32549 0.682353 0.823529 0.835294 0.607843 1. 0.768627 -0.858824 0.701961 0.2 +0.858824 0.701961 0.2 0.92549 0.007843 0.764706 0.6 0. 0.772549 0.815686 1. 0.619608 @@ -108,15 +108,15 @@ 0. 0.521569 0.478431 0.584314 0.572549 0.403922 0.541176 0.862745 0.701961 -0.427451 0.454902 0. +0.427451 0.454902 0. 0.666667 0.368627 0.792157 -0.027451 0.941176 0. +0.027451 0.941176 0. 0.505882 0.309804 0.243137 0.85098 0.505882 0.321569 1. 0.784314 0.388235 0.721569 0. 0.623529 0.6 0.67451 0.870588 -0.568627 0.309804 0. +0.568627 0.309804 0. 0.54902 0.270588 0.439216 0.309804 0.431373 0.321569 1. 0.533333 0.203922 @@ -126,7 +126,7 @@ 0.615686 0.984314 0.458824 0.341176 0.870588 0.466667 0.980392 0. 0.529412 -0.635294 0.803922 1. +0.635294 0.803922 1. 0.078431 0.796078 0.823529 0.066667 0.560784 0.333333 0.823529 0.329412 0.647059 @@ -135,7 +135,7 @@ 0.466667 0.592157 0.356863 0.733333 0.670588 0.501961 0.439216 0.639216 0.690196 -0.839216 0.984314 1. +0.839216 0.984314 1. 0.909804 0.007843 0.227451 0.847059 0.278431 0.133333 1. 0.513725 0.929412 @@ -145,10 +145,10 @@ 0.541176 0.454902 0.568627 0. 0.639216 0.090196 0. 0.960784 0.631373 -0.752941 0.568627 0.94902 +0.752941 0.568627 0.94902 0.541176 0.894118 0.847059 0.643137 0.305882 0.584314 -0.431373 0.368627 0. +0.431373 0.368627 0. 0.54902 0.776471 0.556863 0.584314 0.666667 0.168627 0.780392 0.45098 0.866667 @@ -156,10 +156,10 @@ 0.843137 0.603922 0.215686 0.87451 0.678431 0.717647 0. 0.607843 0.627451 -0.352941 0.564706 0. +0.352941 0.564706 0. 0.592157 0.737255 0.658824 0.678431 0.552941 0.658824 -0.854902 0.835294 1. +0.854902 0.835294 1. 0.333333 0.490196 0.447059 0. 0.733333 0.411765 1. 0.768627 0.556863 @@ -174,37 +174,37 @@ 0.752941 0.427451 0.513725 0.796078 1. 0.313725 0.941176 0.447059 0.666667 -0.929412 0.407843 1. +0.929412 0.407843 1. 0.6 0.278431 0.682353 0.427451 0.411765 0.262745 0.890196 0.341176 0.380392 0.866667 0.4 0.176471 0.615686 0.858824 0.364706 0.886275 0.615686 0.815686 -0.72549 0.462745 0. +0.72549 0.462745 0. 0.776471 0. 0.176471 0.87451 0.741176 0.854902 -0.352941 0.713725 0.87451 +0.352941 0.713725 0.87451 1. 0.352941 0.854902 0.219608 0.760784 0.631373 -0.619608 0.415686 0.54902 +0.619608 0.415686 0.54902 0.678431 0.666667 0.784314 0.588235 0.388235 0.188235 0.713725 0.337255 0.384314 0.172549 0.498039 0.376471 -0.698039 0.894118 0. +0.698039 0.894118 0. 0.933333 0.647059 0.568627 0.584314 0.996078 0.886275 1. 0.333333 0.556863 0.745098 0.435294 0.631373 0.666667 0.235294 0.215686 -0.85098 0.811765 0. +0.85098 0.811765 0. 0.670588 0.501961 0.807843 0.627451 0.501961 0.321569 0.882353 0. 0.909804 0.764706 0.360784 0.243137 0.709804 0.227451 0.521569 -0.54902 0.470588 0. +0.54902 0.470588 0. 0.858824 0.737255 0.588235 0.321569 0.619608 0.576471 0.690196 0.741176 0.513725 @@ -217,30 +217,30 @@ 0.282353 1. 0.937255 0.596078 0.588235 0.282353 0.580392 0.533333 0.654902 -0.196078 0.835294 0. +0.196078 0.835294 0. 0.431373 0.917647 0.337255 0.717647 0.831373 0.921569 0.439216 0.333333 0.439216 0.94902 0.858824 0.545098 0.670588 0.835294 0.760784 -0.498039 0.803922 0.94902 -0.541176 0.733333 0. +0.498039 0.803922 0.94902 +0.541176 0.733333 0. 0.396078 0.717647 0.733333 -1. 0.713725 0. -0.764706 0.509804 0.52549 +1. 0.713725 0. +0.764706 0.509804 0.52549 0.796078 0.670588 0.372549 0.396078 0.470588 0.282353 -0.34902 0.890196 1. +0.34902 0.890196 1. 0.87451 0.305882 0.803922 -0.917647 1. 0.47451 -0.741176 0.4 0.72549 -0.768627 0.584314 0.65098 +0.917647 1. 0.47451 +0.741176 0.4 0.72549 +0.768627 0.584314 0.65098 0.392157 0.776471 0.454902 0.819608 0.584314 0.439216 0.439216 0.811765 0.309804 -0.670588 0.431373 0.4 +0.670588 0.431373 0.4 0.615686 0.380392 0.647059 -0. 0.721569 0. +0. 0.721569 0. 0.890196 0.6 0.705882 0.741176 0. 0.423529 0.701961 0.913725 0.941176 diff --git a/makefile b/makefile index fbc62e0..9ebcba0 100644 --- a/makefile +++ b/makefile @@ -38,13 +38,20 @@ pyenv: .venv: $(PYENV_PYTHON) -m venv .venv + +# Note that CI is defined when running through github actions .PHONY: pip -pip: $(VENV_TARGET) - $(PYTHON) -m pip install -e .[dev] +pip: $(VENV_TARGET) pip-install -$(BUILD_DIR): $(VENV_TARGET) +.PHONY: pip-install +pip-install: +ifdef CI + $(PYTHON) -m pip install -r requirements-dev.txt +else $(PYTHON) -m pip install -e .[dev] +endif +$(BUILD_DIR): $(VENV_TARGET) pip-install .PHONY: pre-commit pre-commit: $(BUILD_DIR) $(PYTHON_ENV) pre-commit install diff --git a/test/__init__.py b/test/__init__.py index 5e4b4ac..1fa27ce 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,4 +1,3 @@ # Copyright 2024 UT-Battelle, LLC, and other Celeritas developers. # See the top-level LICENSE file for details. # SPDX-License-Identifier: Apache-2.0 - diff --git a/test/mock-prefix/bin/mockutils.py b/test/mock-prefix/bin/mockutils.py index 166d7db..231daa7 100644 --- a/test/mock-prefix/bin/mockutils.py +++ b/test/mock-prefix/bin/mockutils.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) import json +import os import signal import sys from typing import Any @@ -15,15 +16,24 @@ warnings.simplefilter("error") +def osprint(*args, sep=" ", end="\n", file=sys.stdout, flush=True): + """Print using the low-level os interfaces rather than python file buffers. + + This prevents "reentrant call" errors if a signal is caught during print. + """ + s = sep.join(map(str, args)) + end + os.write(file.fileno(), s.encode()) + if flush: + file.flush() + + def log(*args): - print("", *args, file=sys.stderr, flush=True) + osprint("", *args, file=sys.stderr) -def dump(obj, file=sys.stdout): +def dump(obj): try: - json.dump(obj, file) - file.write("\n") - file.flush() + osprint(json.dumps(obj)) except BrokenPipeError as e: log(e) diff --git a/test/test_process.py b/test/test_process.py index bbf3e6a..4f86a67 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -4,8 +4,13 @@ import json import signal +from pathlib import Path from celerpy.process import close, communicate, launch +from celerpy.settings import settings + +local_path = Path(__file__).parent +settings.prefix_path = local_path / "mock-prefix" def communicate_json(process, inp):