Skip to content

Commit f407e5a

Browse files
authored
Convert DOC(X) to HTML, set up GitHub actions (#3)
* Implement DOC(X) to HTML conversion with customizable style mapping * Set up GitHub Actions workflow, Codecov configuration, and Dependabot
1 parent 34f566e commit f407e5a

File tree

14 files changed

+433
-158
lines changed

14 files changed

+433
-158
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# For future reference - the options are specified here:
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "pip"
7+
directory: "/"
8+
schedule:
9+
interval: "monthly"

.github/workflows/pytest.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: tests
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-22.04
8+
timeout-minutes: 5
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.9"
18+
- name: install deps
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install poetry
22+
poetry install
23+
- name: run tests
24+
run: |
25+
poetry run pytest -v --tb=short --cov=./ --cov-report=xml
26+
- name: Upload coverage reports to Codecov
27+
uses: codecov/codecov-action@v5
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
slug: lemontree210/tinybear
31+
fail_ci_if_error: true

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,11 @@ cython_debug/
191191
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
192192
# refer to https://docs.cursor.com/context/ignore-files
193193
.cursorignore
194-
.cursorindexingignore
194+
.cursorindexingignore
195+
196+
# QODO AI assistant
197+
/.qodo/
198+
199+
# Directories for user's input files and programs' output files
200+
/input/
201+
/output/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
- id: black
66
language_version: python3.9
77
- repo: https://github.com/pre-commit/mirrors-mypy
8-
rev: v1.16.1
8+
rev: v1.17.1
99
hooks:
1010
- id: mypy
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
1212
# Ruff version.
13-
rev: 'v0.12.0'
13+
rev: 'v0.12.7'
1414
hooks:
1515
- id: ruff
1616
name: ruff

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# tinybear
2-
Where you don't need pandas yet. Tools to work with TXT, CSV, Excel etc.
2+
Where you don't need pandas yet. Tools to work with TXT, CSV, Excel etc.
3+
4+
[![codecov](https://codecov.io/gh/lemontree210/tinybear/graph/badge.svg?token=S0XIMP99YU)](https://codecov.io/gh/lemontree210/tinybear)

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
threshold: 1%

poetry.lock

Lines changed: 195 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ignore_errors = true
1818

1919
[tool.poetry]
2020
name = "tinybear"
21-
version = "0.2.0"
21+
version = "0.3.0"
2222
description = "Where you don't need pandas yet. Tools to work with TXT, CSV, HTML, XLSX etc."
2323
authors = ["Dmitry K <58207913+lemontree210@users.noreply.github.com>"]
2424
readme = "README.md"
@@ -30,11 +30,12 @@ html5lib = "^1.1"
3030
openpyxl = "^3.1.5"
3131
pyyaml = "^6.0.2"
3232
toml = "^0.10.2"
33+
mammoth = "^1.10.0"
3334

3435
[tool.poetry.group.dev.dependencies]
3536
black = "^25.1.0"
36-
mypy = "^1.16.1"
37-
ruff = "^0.12.0"
37+
mypy = "^1.17.1"
38+
ruff = "^0.12.7"
3839
pre-commit = "^4.2.0"
3940
pytest = "^8.4.1"
4041
pytest-cov = "^6.2.1"
5.48 KB
Binary file not shown.

tests/test_helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import pytest
2-
31
from tests.helpers import check_existence_of_output_csv_file_and_compare_with_gold_standard
4-
52
from tests.paths import DIR_WITH_TEST_FILES
63
from tinybear.csv_xls import write_csv
74

0 commit comments

Comments
 (0)