Commit graph

12 commits

Author SHA1 Message Date
Mike
8f18d5e7e2 fix(attribute): restore backward compatibility for invalid slugs
Replace ValidationError with a warning when creating Attributes with invalid slugs. This change allows existing code to continue functioning while alerting users to potential issues.
2024-09-01 21:26:45 -07:00
Mike
b5b576aca5 refactor: apply ruff linter rules and standardize code style
Replace flake8 with ruff and apply consistent linting rules across the entire codebase. Update type annotations, quotation marks, and other style-related changes to comply with the new standards.
2024-09-01 14:57:47 -07:00
pre-commit-ci[bot]
41fa7ddc5c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-31 21:20:36 -07:00
Mike
1262a52282 test(attributes): add slug parameter to attribute model test 2024-08-31 21:20:36 -07:00
Mike
27d3887604 feat(attribute): add slug validation for Python identifier compliance
Implement custom validation for Attribute model's slug field to ensure it's a valid Python identifier. Add corresponding test case.
2024-08-31 21:20:36 -07:00
mathiasag7
3b1be10e9b
feat: Provide UUIDField option for pk field and a natural key feature for serialization (#428) 2023-10-30 08:57:29 -07:00
Mike
8c183333d1 chore: update text description 2022-08-12 14:24:47 -07:00
Mike
cc2acd0724 test: add Attribute model tests 2022-08-12 13:31:55 -07:00
Mike
ed7a808ee8
Allow for integer values larger than 32-bits (#137)
* style: apply ignores to all migrations

* feat: support 64-bit integers

* doc: update changelog

* test: add test for bigger than 32-bit integer
2021-12-18 19:29:38 -08:00
Mike
a98766fc55
Add support for Entity models with UUID as a primary key. (#89)
* chore: fix repo links

* style: flake8 format models.Value

* test: add test for an entity with uuid pk

* feat: support entity models with uuid as pk

* test: check Value repr and str methods
2021-10-22 15:36:17 -07:00
Mike
1e3c547551 test: use new test_project 2021-07-04 08:59:24 -07:00
Mike
3ebbf8d8e7 tests: refactor tests to use pytest 2021-06-17 16:38:46 -07:00
Renamed from tests/attributes.py (Browse further)