Skip to content

Commit ff91abb

Browse files
authored
Merge pull request #28 from cparmet/more-assert-methods
Add more validation methods
2 parents 4b7ff72 + e19dcde commit ff91abb

19 files changed

+2206
-250
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dev.ipynb
1111
dev_script.py
1212

1313
dist/*
14+
site/*

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ repos:
1313
- id: debug-statements
1414
- id: detect-private-key
1515
- id: end-of-file-fixer
16-
- id: trailing-whitespace # Disabled because some markdown styles require trailing whitespace
16+
- id: trailing-whitespace
1717
exclude: md
18-
# args: [--markdown-linebreak-ext=md]
1918

2019
- repo: https://github.com/psf/black
2120
rev: 22.12.0

README.md

Lines changed: 81 additions & 53 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.

docs/usage.md

Lines changed: 90 additions & 53 deletions
Large diffs are not rendered by default.

pandas_checks/DataFrameChecks.py

Lines changed: 560 additions & 18 deletions
Large diffs are not rendered by default.

pandas_checks/SeriesChecks.py

Lines changed: 520 additions & 18 deletions
Large diffs are not rendered by default.

pandas_checks/display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _render_text(
113113
)
114114
display(
115115
Markdown(
116-
f"<{tag} style='text-align: left'>{lead_in_rendered + ' ' if lead_in_rendered else ''}<span 'color:{text_color};' 'background-color:{text_background_color}'>{_filter_emojis(text)}</span></{tag}>"
116+
f"<{tag} style='text-align: left'>{lead_in_rendered + ' ' if lead_in_rendered else ''}<span style='color:{text_color}; background-color:{text_background_color}'>{_filter_emojis(text)}</span></{tag}>"
117117
)
118118
)
119119

@@ -301,7 +301,7 @@ def _lead_in(lead_in: Union[str, None], foreground: str, background: str) -> str
301301
The formatted lead-in text.
302302
"""
303303
return (
304-
f"<span style='color:{foreground}; background-color:{background}'>{_filter_emojis(lead_in).strip()}:</span>"
304+
f"<span style='color:{foreground}; background-color:{background}'>{_filter_emojis(lead_in).strip()}</span>:"
305305
if lead_in
306306
else ""
307307
)

pandas_checks/run_checks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from typing import Any, Callable, List, Union
44

5-
import pandas as pd
6-
75
from .display import _display_check
86
from .options import get_mode
97

0 commit comments

Comments
 (0)