Skip to content

Instantly share code, notes, and snippets.

@Sysa
Last active May 23, 2023 12:55
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment