Commit Graph

21 Commits

Author SHA1 Message Date
Kien Dang
9a773b9d7b
Use ruff in pre-commit (#1441)
* Use ruff in pre-commit

* Add pyupgrade

* Add isort

* Add bugbear

* Fix B015 Pointless comparison

* Fix B026

* B018 false positive

* Remove flake8 and isort config from setup.cfg

* Remove black and flake8 from dev dependencies

* Update black

* Show list of fixes applied with autofix on

* Fix typo

* Add C4 flake8-comprehensions

* Add ruff to dev dependencies

* Fix up
2023-08-06 01:47:00 +03:00
Yuekui
86c5309c45
Fix broken UT due to pytest import error (#1368) 2022-11-14 13:56:18 +03:00
Jarkko Piiroinen
e1a7d19833
Convert DecimalField to Decimal instead of Float in DRF and form converters (#1277)
* Convert serializer DecimalField to Decimal

* Convert form DecimalField to Decimal
2022-01-18 17:03:08 +03:00
Leeward Bound
83bc32bc9d
Adding support for disabling enum creation on SerializerMutation (#851) 2020-02-07 10:17:56 +00:00
Jason Kraus
a64ba65bef convert DRF ChoiceField to Enum (#537)
* convert DRF ChoiceField to Enum, also impacts FilePathField

* Pep8 fixes

* DRF multiple choices field converts to list of enum

* apply black formatting
2019-09-22 21:13:12 +01:00
Syrus Akbary
54ef52e1c6 Reformatted files using black 2018-07-19 16:52:24 -07:00
mbarrientos
3793ce17c0 Add support for ListSerializer fields in SerializerMutation 2018-02-13 12:12:50 +01:00
=
62c0694901 models.DateField corresponds to graphene Date Scalar 2017-12-05 15:04:29 -05:00
Jacob Foster
81a6dff9d0 Update field converter tests 2017-07-18 14:02:28 -05:00
Patrick Arminio
1a04d608ed Add support for MultipleChoiceField 2017-06-26 14:32:57 +01:00
Patrick Arminio
510ee9383e Add support for JSONField 2017-06-26 14:28:03 +01:00
Patrick Arminio
0e2c736c74 Add test for image field 2017-06-26 14:26:26 +01:00
Patrick Arminio
66d1875eb7 Fix missing path 2017-06-26 14:25:57 +01:00
Patrick Arminio
b500ffb8b0 Add test for IPAddressField 2017-06-26 14:24:16 +01:00
Patrick Arminio
47c5dfcab7 Add test for FilePathField 2017-06-26 14:23:45 +01:00
Patrick Arminio
772e2d114a Add test for file field 2017-06-26 14:23:17 +01:00
Patrick Arminio
a7c3337903 Add test for duration field 2017-06-26 14:22:38 +01:00
Patrick Arminio
68f6281ec8 Add support for dict field 2017-06-26 14:19:55 +01:00
Patrick Arminio
f747102e35 Add support for rest framework List Field 2017-06-26 12:14:04 +01:00
Patrick Arminio
6de3bbc352 Small test refactor 2017-06-26 12:11:35 +01:00
Patrick Arminio
fb2af7067f Initial implementation of serializer field converter 2017-06-26 09:19:49 +01:00