Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseaskr committed Nov 21, 2024
1 parent d47d634 commit ebd4405
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
7 changes: 4 additions & 3 deletions rapidchecker/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
from pathlib import Path

import click
from pyparsing import ParseBaseException
Expand All @@ -7,12 +8,12 @@
from rapidchecker.whitespace_checks import WhiteSpaceError

from .check import check_format
from .io import get_sys_files, read_sys_file
from .whitespace_checks import check_whitespace


def in_ignore_list(path: str, ignore_list: list[str]) -> bool:
return any(item in path for item in ignore_list)
def read_sys_file(path: str | Path) -> str:
with Path(path).open() as f:
return f.read()


def check_file(file_contents: str) -> list[ParseBaseException | WhiteSpaceError]:
Expand Down
14 changes: 0 additions & 14 deletions rapidchecker/io.py

This file was deleted.

2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebd4405

Please sign in to comment.