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

Use datetime built-in library #20

Merged
merged 11 commits into from
Jul 27, 2024
Merged

Use datetime built-in library #20

merged 11 commits into from
Jul 27, 2024

Commits on Jul 27, 2024

  1. Configuration menu
    Copy the full SHA
    5bdb5e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f35058d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ba9abe View commit details
    Browse the repository at this point in the history
  4. refactor(tests): Reorganise for Docker testing

    - Structure in tests/files now follows a series of chronological test fixtures
    - Lay the groundwork for future Docker-based testing, where the package is containerised and scripted in bash to process all these fixtures
    - Rename some files to cut down the length
    - Adjust all tests accordingly
    - Moods file and the valid entry file are shared into multiple locations in the tests directory as symlinks
    - moved one check from test_default_moodverse_no_customisation to a separate test method
    DeutscheGabanna committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    b7bc6d4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a5cdacc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9e01b29 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e65f254 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a9a0788 View commit details
    Browse the repository at this point in the history
  9. fix(): Do not append while outputting files

    - Changed file access mode from `a` to `w`
    DeutscheGabanna committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    75b9328 View commit details
    Browse the repository at this point in the history
  10. refactor(): Prepare code for ditching global config

    - Classes and methods now accept local config as parameters instead of accessing them from a global variable.
    - Still needs work to do, especially in the actual user-facing command, but should get us closer to no globals.
    DeutscheGabanna committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    d6955ff View commit details
    Browse the repository at this point in the history
  11. refactor(): Use datetime library

    - BREAKING CHANGE: Remove custom Date and Time classes in favour of `datetime` built-in library
    - Add helper methods for the `datetime` library to help detect what format a date or time is written in (such solutions do not come out of the box)
    - Improved code structure
    - BREAKING CHANGE: Name changes to classes
    - more common use of `__getitem__` and `__setitem__` dunders instead of making separate methods for manipulating dictionary items
    - Remade tests to accommodate the library change
    DeutscheGabanna committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    1347eb2 View commit details
    Browse the repository at this point in the history