Last active
August 14, 2024 08:57
-
-
Save Sysa/26dcc926125321cba89b4f1d52d903df to your computer and use it in GitHub Desktop.
python helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python linter ruff: | |
# to add 'noqa' to the failing lines and not to check in the future. useful for pytest or pb_utils | |
ruff check . | |
ruff check . --add-noqa | |
get list of sub-dependencies: | |
pip3 freeze | awk '{print $1}' | cut -d '=' -f1 | xargs pip3 show > conda.out | |
path workaround for test cases: | |
import sys | |
sys.path.insert(0, ".") | |
pytest recspoc/test_featurestores_cache.py --disable-warnings --durations=10 -vv | |
pyenv install 3.10.12 | |
pyenv shell 3.10.12 | |
poetry config virtualenvs.in-project true | |
poetry install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment