Skip to content

Instantly share code, notes, and snippets.

@Sysa
Last active August 14, 2024 08:57
Show Gist options
  • Save Sysa/26dcc926125321cba89b4f1d52d903df to your computer and use it in GitHub Desktop.
Save Sysa/26dcc926125321cba89b4f1d52d903df to your computer and use it in GitHub Desktop.
python helpers
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