Skip to content

Commit aa87368

Browse files
authored
Remove all test coverage tooling (#239)
* Remove Codecov integration * Remove all test coverage tooling
1 parent 6c2f2b0 commit aa87368

8 files changed

Lines changed: 4 additions & 207 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ jobs:
2727
run: uv run --locked pre-commit run --verbose --all-files --show-diff-on-failure
2828
- name: Run ty
2929
run: uv run --locked ty check
30-
- name: Upload coverage to Codecov
31-
uses: codecov/codecov-action@v3

‎.gitignore‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,3 @@ local/
1616
.venv/
1717
env/
1818
venv/
19-
20-
# Coverage
21-
.coverage
22-
coverage.xml
23-
htmlcov/

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# algorithms-keeper
44
[![CI](https://github.com/TheAlgorithms/algorithms-keeper/actions/workflows/main.yml/badge.svg)](https://github.com/TheAlgorithms/algorithms-keeper/actions/workflows/main.yml)
5-
[![codecov](https://codecov.io/gh/TheAlgorithms/algorithms-keeper/branch/master/graph/badge.svg?token=QYAZ665UJL)](https://codecov.io/gh/TheAlgorithms/algorithms-keeper)
65
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://docs.astral.sh/ruff/)
76
[![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://docs.astral.sh/ty/)
87

‎algorithms_keeper/__main__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def main(request: web.Request) -> web.Response:
9393
]
9494
logger.debug("event=%s callbacks=%s", event_info, callbacks)
9595
await main_router.dispatch(event, gh)
96-
if gh.rate_limit is not None: # pragma: no cover
96+
if gh.rate_limit is not None:
9797
logger.info(
9898
"ratelimit=%s, time_remaining=%s",
9999
f"{gh.rate_limit.remaining}/{gh.rate_limit.limit}",
@@ -105,7 +105,7 @@ async def main(request: web.Request) -> web.Response:
105105
return web.Response(status=500, text=str(err))
106106

107107

108-
if __name__ == "__main__": # pragma: no cover
108+
if __name__ == "__main__":
109109
app = web.Application()
110110
app.add_routes(routes)
111111
# Heroku dynamically assigns the app a port, so we can't set the port to a fixed

‎algorithms_keeper/api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def _request(
9090
return response.status, response.headers, await response.read()
9191

9292
@staticmethod
93-
def log(response: ClientResponse, body: bytes) -> None: # pragma: no cover
93+
def log(response: ClientResponse, body: bytes) -> None:
9494
"""Log the request-response cycle for the GitHub API calls made by the bot.
9595
9696
The logger information will be useful to know what actions the bot made.

‎algorithms_keeper/parser/record.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def add_error(self, exc: SyntaxError | ParserSyntaxError, filepath: str) -> None
8585
# It seems that ``ParserSyntaxError`` is not a subclass of ``SyntaxError``,
8686
# the same information is stored under a different attribute. There is no
8787
# filename information in ``ParserSyntaxError``, thus the parameter `filepath`.
88-
if isinstance(exc, SyntaxError): # noqa: SIM108, pragma: no cover
88+
if isinstance(exc, SyntaxError): # noqa: SIM108
8989
lineno = exc.lineno or 1
9090
else:
9191
lineno = exc.raw_line

‎pyproject.toml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dev = [
1919
"pytest==9.1.1",
2020
"pytest-aiohttp==1.1.1",
2121
"pytest-asyncio==1.4.0",
22-
"pytest-cov==7.1.0",
2322
"ty==0.0.78",
2423
]
2524

@@ -115,8 +114,3 @@ max-args = 6 # Recommended: 5
115114
[tool.pytest.ini_options]
116115
asyncio_default_fixture_loop_scope = "function"
117116
testpaths = "tests"
118-
addopts = """\
119-
--cov=algorithms_keeper
120-
--cov-report=xml
121-
--cov-report=term-missing
122-
"""

‎uv.lock‎

Lines changed: 0 additions & 189 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)