-
Notifications
You must be signed in to change notification settings - Fork 31
chore: Make condition_index
optional. Also added some scripts for local dev.
#223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our 8000 terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
See PostHog/meta#309 for the rationale behind these scripts.
This is part of PostHog/posthog#30569
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR adds development scripts and makes condition_index
optional in feature flag responses for the PostHog Python client.
- Modified
FlagReason
class inposthog/types.py
to makecondition_index
anOptional[int]
instead of requiring an integer value - Added
bin/setup
script to create virtualenv and install dev/test dependencies - Added
bin/fmt
script for code formatting using black and isort - Added
bin/build
script for running flake8 and mypy checks - Added
bin/test
script for running pytest with helper utilities frombin/helpers/_utils.sh
7 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile
source bin/helpers/_utils.sh | ||
set_source_and_root_dir | ||
|
||
flake8 posthog --ignore E501,W503 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider adding --config=setup.cfg
to ensure flake8 uses consistent configuration across different environments
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
low-context stamp
See PostHog/posthog#30569 for why I'm making this change to
condition_index
.See PostHog/meta#309 for the rationale behind these scripts.