-
-
Notifications
You must be signed in to change notification settings - Fork 34
Improve isatty
check
#56
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 terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR, please could you explain how this is better? |
The |
Why is the CI failing with |
Weird |
Let me do more test |
cd77b9d
to
7ecd513
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #56 +/- ##
===========================================
- Coverage 100.00% 97.90% -2.10%
===========================================
Files 4 4
Lines 125 143 +18
===========================================
+ Hits 125 140 +15
- Misses 0 3 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
8751e00
to
6d74a64
Compare
@hugovk Just update the |
Signed-off-by: Xiaoli Chan <2209553467@qq.com>
But why is this better? Please could you fix the mypy error? Also it looks like some other people also check for |
I can't explain this sorry, but it actually works better than |
ec5ad81
to
a5365a0
Compare
We currently have the problem that when displaying coloured output through rich.console the Other popular projects like sqlmap uses |
for more information, see https://pre-commit.ci
Signed-off-by: Xiaoli Chan <2209553467@qq.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Signed-off-by: Xiaoli Chan <2209553467@qq.com>
Why the workflow stucked here XD |
XD So I think it can be merged, how do you think of it? |
Thank you! |
os.isatty(sys.stdout.fileno())
is much better thansys.stdout.isatty()
Fixed: