Skip to content

Drop the dependency on ansicolors#822

Merged
willingc merged 3 commits into
nteract:mainfrom
musicinmybrain:without-ansicolors
Nov 14, 2025
Merged

Drop the dependency on ansicolors#822
willingc merged 3 commits into
nteract:mainfrom
musicinmybrain:without-ansicolors

Conversation

@musicinmybrain
Copy link
Copy Markdown
Contributor

What does this PR do?

The ansicolors package is not actively maintained (last released in 2017), and the function we use is just based on a single simple regular expression. Copy the regular expression into papermill and drop the external dependency.

The package is not actively maintained (last released in 2017), and the
function we use is just based on a single simple regular expression.
Copy the regular expression into papermill and drop the external
dependency.
This may not be terribly important, as the re module caches patterns,
but it doesn’t hurt. Corresponds to
jonathaneunice/colors#2.
@musicinmybrain
Copy link
Copy Markdown
Contributor Author

There are various CI failures; I didn’t see any that looked related to this PR.

Copy link
Copy Markdown
Member

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @musicinmybrain. 🎉

@willingc willingc enabled auto-merge (squash) November 14, 2025 00:48
@willingc willingc merged commit cb6b602 into nteract:main Nov 14, 2025
11 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.13%. Comparing base (cb2eb37) to head (79bc188).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #822      +/-   ##
==========================================
- Coverage   91.54%   91.13%   -0.42%     
==========================================
  Files          17       17              
  Lines        1621     1635      +14     
==========================================
+ Hits         1484     1490       +6     
- Misses        137      145       +8     
Files with missing lines Coverage Δ
papermill/exceptions.py 83.33% <100.00%> (-4.17%) ⬇️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18a85af...79bc188. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants