Skip to content

Commit 3beb702

Browse files
authored
Add tests and coverage report, update modules (#18)
Add a comprehensive test suite and coverage output (coverage.json); update pytest.ini and include many new test files under tests/. Update docs components (docs/app/components/ThemeToggle.tsx and docs/app/page.tsx). Modify multiple metbit modules and include regenerated __pycache__ (.pyc) artifacts. Update .gitignore to ignore metbit/__pycache__.
1 parent b545b28 commit 3beb702

62 files changed

Lines changed: 1661 additions & 110 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ reports/
1818
.pytest_cache/
1919
htmlcov/
2020
.mypy_cache/
21+
/metbit/__pycache__
22+
/metbit/__pycache__
23+
*.pyc
24+
*.pyc

coverage.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

docs/app/components/ThemeToggle.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default function ThemeToggle() {
4949
<div className="themeToggle" aria-label="Theme">
5050
<div className="seg" role="group" aria-label="Theme toggle">
5151
<button
52+
type="button"
5253
className={mode==='light' ? 'active' : ''}
5354
onClick={() => choose('light')}
5455
aria-pressed={mode==='light'}
@@ -57,6 +58,7 @@ export default function ThemeToggle() {
5758
<FiSun aria-hidden /> Light
5859
</button>
5960
<button
61+
type="button"
6062
className={mode==='system' ? 'active' : ''}
6163
onClick={() => choose('system')}
6264
aria-pressed={mode==='system'}
@@ -65,6 +67,7 @@ export default function ThemeToggle() {
6567
<FiMonitor aria-hidden /> System
6668
</button>
6769
<button
70+
type="button"
6871
className={mode==='dark' ? 'active' : ''}
6972
onClick={() => choose('dark')}
7073
aria-pressed={mode==='dark'}

docs/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default function HomePage() {
1313
<h2>Welcome</h2>
1414
<p>Install from PyPI and jump into processing, modeling, and visualization.</p>
1515
<p style={{marginTop:12}}>
16-
<a className="btn" href="/docs/getting-started"><FiPackage aria-hidden /> Install & Quick Start</a>
16+
<Link className="btn" href="/docs/getting-started"><FiPackage aria-hidden /> Install &amp; Quick Start</Link>
1717
<span style={{ marginLeft: 8 }} />
18-
<a className="btn secondary" href="/docs/api">Browse API</a>
18+
<Link className="btn secondary" href="/docs/api">Browse API</Link>
1919
</p>
2020
<div className="grid">
2121
<div className="card">
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)