Skip to content

Commit

Permalink
Merge pull request #11 from robertknight/refactor-datasets
Browse files Browse the repository at this point in the history
Refactor `ocrs_models.datasets`
  • Loading branch information
robertknight committed Feb 10, 2024
2 parents e2b30fe + 24c5d10 commit 936d2af
Show file tree
Hide file tree
Showing 19 changed files with 1,244 additions and 1,178 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
run: |
poetry install
poetry run pip install torch torchvision
- name: Check formatting and types
- name: Lint, format and typecheck
run: |
poetry run black --check .
poetry run mypy ocrs_models
make qa
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Model checkpoints
*.pt

datasets/
wandb/
__pycache__/

/datasets
/wandb
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
qa:
.PHONY: qa
qa: checkformat lint typecheck

.PHONY: checkformat
checkformat:
poetry run black --check .

.PHONY: format
format:
poetry run black ocrs_models

.PHONY: lint
lint:
poetry run ruff ocrs_models

.PHONY: typecheck
typecheck:
poetry run mypy ocrs_models
Loading

0 comments on commit 936d2af

Please sign in to comment.