Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ jobs:
run: uv run --locked pre-commit run --verbose --all-files --show-diff-on-failure
- name: Run ty
run: uv run --locked ty check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ local/
.venv/
env/
venv/

# Coverage
.coverage
coverage.xml
htmlcov/
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

Expand Down
4 changes: 2 additions & 2 deletions algorithms_keeper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def main(request: web.Request) -> web.Response:
]
logger.debug("event=%s callbacks=%s", event_info, callbacks)
await main_router.dispatch(event, gh)
if gh.rate_limit is not None: # pragma: no cover
if gh.rate_limit is not None:
logger.info(
"ratelimit=%s, time_remaining=%s",
f"{gh.rate_limit.remaining}/{gh.rate_limit.limit}",
Expand All @@ -105,7 +105,7 @@ async def main(request: web.Request) -> web.Response:
return web.Response(status=500, text=str(err))


if __name__ == "__main__": # pragma: no cover
if __name__ == "__main__":
app = web.Application()
app.add_routes(routes)
# Heroku dynamically assigns the app a port, so we can't set the port to a fixed
Expand Down
2 changes: 1 addition & 1 deletion algorithms_keeper/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def _request(
return response.status, response.headers, await response.read()

@staticmethod
def log(response: ClientResponse, body: bytes) -> None: # pragma: no cover
def log(response: ClientResponse, body: bytes) -> None:
"""Log the request-response cycle for the GitHub API calls made by the bot.

The logger information will be useful to know what actions the bot made.
Expand Down
2 changes: 1 addition & 1 deletion algorithms_keeper/parser/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def add_error(self, exc: SyntaxError | ParserSyntaxError, filepath: str) -> None
# It seems that ``ParserSyntaxError`` is not a subclass of ``SyntaxError``,
# the same information is stored under a different attribute. There is no
# filename information in ``ParserSyntaxError``, thus the parameter `filepath`.
if isinstance(exc, SyntaxError): # noqa: SIM108, pragma: no cover
if isinstance(exc, SyntaxError): # noqa: SIM108
lineno = exc.lineno or 1
else:
lineno = exc.raw_line
Expand Down
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dev = [
"pytest==9.1.1",
"pytest-aiohttp==1.1.1",
"pytest-asyncio==1.4.0",
"pytest-cov==7.1.0",
"ty==0.0.78",
]

Expand Down Expand Up @@ -115,8 +114,3 @@ max-args = 6 # Recommended: 5
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
testpaths = "tests"
addopts = """\
--cov=algorithms_keeper
--cov-report=xml
--cov-report=term-missing
"""
189 changes: 0 additions & 189 deletions uv.lock

Large diffs are not rendered by default.

Loading