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

HowFast / apm-python / 06b7e795-a650-4df1-9f26-225db7666945

24 Dec 2024 12:58AM UTC coverage: 92.333%. Remained the same
06b7e795-a650-4df1-9f26-225db7666945

Pull #21

circleci

web-flow
Bump jinja2 from 3.1.4 to 3.1.5

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #21: Bump jinja2 from 3.1.4 to 3.1.5

53 of 61 branches covered (86.89%)

Branch coverage included in aggregate %.

224 of 239 relevant lines covered (93.72%)

0.94 hits per line

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

84.21
/howfast_apm/utils.py
1
import fnmatch
1✔
2
import re
1✔
3

4
from typing import List
1✔
5

6

7
def compile_endpoints(*blacklist):
1✔
8
    """Compiles a list endpoints to a list of regexes"""
9
    return [re.compile(fnmatch.translate(x)) for x in blacklist]
1✔
10

11

12
def is_in_blacklist(uri: str, blacklist: List[str]) -> bool:
1✔
13
    """
14
    Return True if the URI is blacklisted.
15

16
      >>> is_in_blacklist('/some-real-uri/', compile_endpoints('/exact-uri/'))
17
      False
18
      >>> is_in_blacklist('/exact-uri/', compile_endpoints('/exact-uri/'))
19
      True
20
      >>> is_in_blacklist('/job/42/retry', compile_endpoints('/job/*'))
21
      True
22

23
    """
24
    for pattern in blacklist:
1✔
25
        if pattern.match(uri):
1✔
26
            return True
1✔
27
    return False
1✔
28

29

30
if __name__ == "__main__":
1!
31
    import doctest
×
32
    doctest.testmod()
×
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