Skip to content

Commit 6b224c0

Browse files
authored
feat: add fmt_engineering() (#786)
* Add engineering notation formatting method * Update _formats_vals.py * Update vals.py * Update test_formats.py * Add GT.fmt_engineering to reference API * Add tests for some fmt_engineering() edge cases * Add tests for engineering notn formatter function * Refactor vals.py imports and update Ruff config * Remove redundant import in fmt_engineering_context() * Remove unused engineering notation function * Remove sep_mark parameter from engineering format functions * Reorder and clean up imports in _formats_vals.py * Simplify engineering format test cases * Remove sep_mark arg from eng formatters * Include simple example to start off section
1 parent c86242f commit 6b224c0

File tree

9 files changed

+668
-32
lines changed

9 files changed

+668
-32
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
},
1818
"python.testing.pytestArgs": ["tests"],
1919
"python.testing.unittestEnabled": false,
20-
"python.testing.pytestEnabled": true
20+
"python.testing.pytestEnabled": true,
21+
"ruff.format.args": ["--exclude", "great_tables/vals.py"],
22+
"ruff.lint.args": ["--exclude", "great_tables/vals.py"]
2123
}

docs/_quarto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ quartodoc:
139139
- GT.fmt_integer
140140
- GT.fmt_percent
141141
- GT.fmt_scientific
142+
- GT.fmt_engineering
142143
- GT.fmt_currency
143144
- GT.fmt_bytes
144145
- GT.fmt_roman

0 commit comments

Comments
 (0)