Skip to content

Commit

Permalink
Release 1.1.0 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbayliss committed Aug 16, 2023
1 parent ac83e99 commit 638f2dc
Show file tree
Hide file tree
Showing 93 changed files with 1,268 additions and 1,676 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ repos:
rev: 5.12.0
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/python/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-eslint
Expand Down
30 changes: 26 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,37 @@

> All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
## Types of changes

### Changed
- `Added` for new features.
- `Changed` for changes in existing functionality.
- `Deprecated` for soon-to-be removed features.
- `Dev` for changes to the developer experience.
- `Fixed` for bug fixes.
- `Removed` for now removed features.
- `Security` in case of vulnerabilities.

- Use snapshot testing plugin (syrupy) for component rendering tests instead of HTML fixtures
## Unreleased

### Added

- Template linting to CI using `djlint`
- Snapshot formatting check to CI using `djlint`
- Autoformatting of snapshots using `djlint`
- Testing accross Django versions 2.2 - 4.0 and Python versions 3.8 - 3.11 using `tox`
- Testing across Django versions 2.2 - 4.0 and Python versions 3.8 - 3.11 using `tox`
- Support for dividers on checkbox fields

### Changed

- Use snapshot testing plugin (syrupy) for component rendering tests instead of HTML fixtures
- form.helper (`FormHelper`) changed from a static `@property` to the form's `__init__` method to allow changes at runtime
- Update documentation and examples to use `Field` classmethods (e.g. `Field.select`) to avoid passing `context` dictionary to `Field` (https://crispy-forms-gds.readthedocs.io/en/latest/reference/layout/field.html)
- `BaseForm` renamed to `TbxFormsMixin` to more accurately convey what it is
- Styles no longer depend on the form having the `.tbxforms` class

### Fixed

- `Field.select` label size and tag can be changed
- `DateInputField` no longer raises a `ValueError` when given invalid input (a `ValidationError` is raised instead)
- `DateInputField` with `required=False` no longer raises a `ValueError` when no values are passed
- `DateInputField` no longer errors with `OverflowError` when large values are passed

0 comments on commit 638f2dc

Please sign in to comment.