• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18198316586

02 Oct 2025 03:50PM UTC coverage: 78.82% (-1.4%) from 80.265%
18198316586

push

github

web-flow
Bump serde from 1.0.226 to 1.0.228 in /src/rust (#22723)

Bumps [serde](https://github.com/serde-rs/serde) from 1.0.226 to
1.0.228.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/serde-rs/serde/releases">serde's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.228</h2>
<ul>
<li>Allow building documentation with
<code>RUSTDOCFLAGS='--cfg=docsrs'</code> set for the whole dependency
graph (<a
href="https://redirect.github.com/serde-rs/serde/issues/2995">#2995</a>)</li>
</ul>
<h2>v1.0.227</h2>
<ul>
<li>Documentation improvements (<a
href="https://redirect.github.com/serde-rs/serde/issues/2991">#2991</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/serde-rs/serde/commit/a866b336f"><code>a866b33</code></a>
Release 1.0.228</li>
<li><a
href="https://github.com/serde-rs/serde/commit/5adc9e816"><code>5adc9e8</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2995">#2995</a>
from dtolnay/rustdocflags</li>
<li><a
href="https://github.com/serde-rs/serde/commit/ab581789f"><code>ab58178</code></a>
Workaround for RUSTDOCFLAGS='--cfg=docsrs'</li>
<li><a
href="https://github.com/serde-rs/serde/commit/415d9fc56"><code>415d9fc</code></a>
Release 1.0.227</li>
<li><a
href="https://github.com/serde-rs/serde/commit/7c58427e1"><code>7c58427</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2991">#2991</a>
from dtolnay/inlinecoredoc</li>
<li><a
href="https://github.com/serde-rs/serde/commit/9d3410e3f"><code>9d3410e</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2992">#2992</a>
from dtolnay/inplaceseed</li>
<li><a
href="https://github.com/serde-rs/serde/commit/2fb6748bf1ff93... (continued)

73576 of 93347 relevant lines covered (78.82%)

2.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.23
/src/python/pants/help/maybe_color.py
1
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4

5
from colors import color as ansicolor
10✔
6
from colors import cyan, green, magenta, red, yellow
10✔
7

8

9
def _orange(s: str, **kwargs):
10✔
10
    return ansicolor(s, "orange", **kwargs)
×
11

12

13
class MaybeColor:
10✔
14
    """A mixin to allow classes to optionally colorize their output."""
15

16
    def __init__(self, color: bool) -> None:
10✔
17
        self._color = color
3✔
18

19
        def noop(x, **_):
3✔
20
            return x
3✔
21

22
        self.maybe_color = ansicolor if color else noop
3✔
23
        self.maybe_cyan = cyan if color else noop
3✔
24
        self.maybe_green = green if color else noop
3✔
25
        self.maybe_orange = _orange if color else noop
3✔
26
        self.maybe_red = red if color else noop
3✔
27
        self.maybe_magenta = magenta if color else noop
3✔
28
        self.maybe_yellow = yellow if color else noop
3✔
29

30
    def _format_did_you_mean_matches(self, did_you_mean: list[str]) -> str:
10✔
31
        if len(did_you_mean) == 1:
×
32
            formatted_candidates = self.maybe_cyan(did_you_mean[0])
×
33
        elif len(did_you_mean) == 2:
×
34
            formatted_candidates = " or ".join(self.maybe_cyan(g) for g in did_you_mean)
×
35
        else:
36
            formatted_candidates = (
×
37
                f"{', '.join(self.maybe_cyan(g) for g in did_you_mean[:-1])}, or {did_you_mean[-1]}"
38
            )
39
        return str(formatted_candidates)
×
40

41
    @property
10✔
42
    def color(self) -> bool:
10✔
43
        return self._color
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc