Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: rewrite for flexibility and readability #1

Merged
merged 13 commits into from
May 8, 2024

Conversation

AdamBajger
Copy link
Owner

  • add abstract class for card printers (FPDF2 and Matplotlib) to reduce redundant code
  • remove globals, add docstrings, add typing
  • introduce RUFF for linting and stuff
  • add example cards for offline development/testing

Adam Bajger and others added 13 commits April 13, 2024 04:34
- update from setup.py to pyproject.toml
- use pdm
- add support for "x" after the numbers in the decklists
- add a dedicated module for sizes and dimensions
- add nptyping for better typehints
- remove pdf case from matplotlib function, since PDF output is handled by a separate method
- add cache CLI argument for the following cache refactor
- fix methods being shadowed by their local variables
- replace Argparse with CLick
- rewrite dimensions for better accessibility
- decompose printing methods into classes for better extensibility
- modify cache location
- add cache argument to each function that uses it to remove cache definition through side effects (globals are 'ew'!)
- add some tests for units and dimensions
- add conftest for fixtures
- fix some broken tests
-
- add conftest for fixtures
- fix broken tests
- remove obsolete tests
- change str -> Path where applicable
- fix matplotlib plotting and FPDF2 printing issues, including issues rooted in the abstract base class.
- use the faster better RUFF instead of older things.
- add conventional commits hook to encourage readable reflogs
- add example card images for testing and offline development
- fix pre-commit dependency and stuff
- remove invalid import
- update README.md
- update deps in pyproject.toml
- remove prettier
- use correct fixtures
@AdamBajger AdamBajger merged commit ccbdf5f into master May 8, 2024
4 checks passed
@AdamBajger AdamBajger deleted the feature/refactor-extend branch May 8, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant