Commit Graph

131 Commits

Author SHA1 Message Date
Samuel Colvin dfc5924936 Better validators (#97)
* working on improved validators

* full tests for validators

* tweask

* tweaking fields.py

* adding docs

* add history

* fix classmethod validators
2017-11-07 13:06:44 +00:00
Samuel Colvin 02dc2f2697 allow json env vars (#96)
* allow json env vars

* add docs
2017-11-07 11:26:16 +00:00
Samuel Colvin 1077a884ac fix benchmarks 2017-11-06 15:19:16 +00:00
Samuel Colvin cc1dbeabb5 updating history.rst 2017-11-06 13:43:25 +00:00
petroswork fe8031703b Perform validation on assignment to attribute (#94)
* Perform validation on assignment to attribute

* Add config variable "validate_assignment" defaulting to False.
* Add unit test.

* Add non-empty second parameter to fields.validate

* Improved tests per maintainer's suggestions.

* Improved tests.

* Add documentation in index.rst
2017-10-31 20:04:40 +00:00
Samuel Colvin 42e2c06896 update history 2017-10-23 20:07:58 +01:00
Samuel Colvin b10566841e Less verbose errors (#90)
* make errors less verbose, fix #71

* remove track too if null

* update docs

* better dict error, fix #74

* add history
2017-10-23 20:06:48 +01:00
Samuel Colvin 7c9c0d46aa fix toastedmarshmallow benchmarks and add marshmallow benchmarks (#91)
* fix toastedmarshmallow benchmarks and add marshmallow benchmarks

* format benchmarks better

* add runtime for netlify

* remove sphinxcontrib-spelling==4.0.1

* remove docs linting

* adding benchmarks section to docs
2017-10-23 19:53:35 +01:00
Samuel Colvin 5cf23fb415 Uuid type (#89)
* adding UUID validator, fix #65

* add docs

* uprev
2017-10-23 19:49:52 +01:00
Samuel Colvin 13300cd8c6 add .pyup.yml, tweak setup 2017-10-23 16:06:16 +01:00
pyup.io bot 06d971ae4d Update flake8 to 3.5.0 (#88)
* Update flake8 from 3.4.1 to 3.5.0

* fix linting with flake8 3.5
2017-10-23 15:35:56 +01:00
Samuel Colvin 6f3ceb07d5 uprev sphinxcontrib-spelling 2017-10-23 15:32:05 +01:00
Mickaël Guérin 1d9a337f70 Add Toasted Marshmallow Benchmark (#85)
https://github.com/lyft/toasted-marshmallow

As said in the README of this project :
Toasted Marshmallow implements a JIT for marshmallow that speeds up
dumping objects 10-25X (depending on your schema). Toasted Marshmallow
allows you to have the great API that Marshmallow provides without
having to sacrifice performance!
2017-10-23 15:26:51 +01:00
pyup.io bot 7497a6b102 Update sphinx from 1.6.4 to 1.6.5 (#87) 2017-10-23 15:22:05 +01:00
pyup.io bot 7407f9703a Update mypy from 0.530 to 0.540 (#84) 2017-10-23 15:20:47 +01:00
pyup.io bot 4ea7405dc9 Update sphinx from 1.6.3 to 1.6.4 (#82) 2017-10-10 20:26:37 +01:00
pyup.io bot 5b37e7b856 Update pytest-mock from 1.6.2 to 1.6.3 (#77) 2017-10-10 20:08:22 +01:00
pyup.io bot d19e1422e6 Update pytest from 3.2.1 to 3.2.3 (#79) 2017-10-10 20:07:58 +01:00
pyup.io bot 1dff0df7e8 Update mypy from 0.521 to 0.530 (#80) 2017-10-10 20:07:48 +01:00
pyup.io bot f6bbee465b Update sphinxcontrib-spelling from 2.3.0 to 4.0.0 (#81) 2017-10-10 20:07:39 +01:00
pyup.io bot de9fd8a4db Update pyflakes from 1.5.0 to 1.6.0 (#75) 2017-08-15 22:14:58 +01:00
pyup.io bot 32184df4cf Update docutils from 0.13.1 to 0.14 (#69) 2017-08-15 21:51:20 +01:00
pyup.io bot 18031f5964 Update pytest from 3.1.3 to 3.2.1 (#72) 2017-08-15 21:51:01 +01:00
pyup.io bot 6d7b2f60a9 Update pytest-sugar from 0.8.0 to 0.9.0 (#73) 2017-08-15 21:50:51 +01:00
pyup.io bot b81b8b1f26 Update flake8 from 3.4.0 to 3.4.1 (#67) 2017-07-29 17:27:23 +01:00
pyup.io bot 2c9b95de6e Update mypy from 0.520 to 0.521 (#63) 2017-07-28 10:35:46 +01:00
pyup.io bot fb8c2505b6 Update flake8 from 3.3.0 to 3.4.0 (#66) 2017-07-28 10:34:32 +01:00
pyup.io bot b2a5909a11 Update pytest-mock from 1.6.0 to 1.6.2 (#62) 2017-07-17 20:42:51 +01:00
pyup.io bot 1cc2142d4e Update mypy from 0.511 to 0.520 (#60) 2017-07-10 23:28:29 +01:00
Samuel Colvin a57e1549b5 correct history after release 2017-07-10 13:24:33 +01:00
Samuel Colvin 29508d4972 uprev 2017-07-08 19:11:15 +01:00
Samuel Colvin 5efa54d80d annotation only fields first 2017-07-08 19:01:38 +01:00
Samuel Colvin 044fd42f4f parser methods (#58), fix #39
* working on parsers

* starting parse tests

* proper tests for parse

* adding parse docs

* tweaks and history

* add test for datetime direct, fix tests

* tweak docs
2017-07-08 18:39:24 +01:00
Samuel Colvin 8d5fadb2e8 constr None, fix #59 2017-07-08 18:30:13 +01:00
Samuel Colvin 378c96888e simplifying errors 2017-07-08 18:22:57 +01:00
Samuel Colvin ebca8df223 improving benchmarks 2017-07-08 17:31:13 +01:00
Samuel Colvin 98d5657406 use unicode ellipsis in truncate 2017-07-08 15:00:35 +01:00
Samuel Colvin d8ac3f528b inheritance and config, fix #55 2017-07-08 13:48:32 +01:00
Samuel Colvin 61d23b2796 show incorrect length in string validation error 2017-07-06 16:14:02 +01:00
pyup.io bot 6f828397bb Update pytest from 3.1.2 to 3.1.3 (#57) 2017-07-06 15:39:33 +01:00
pyup.io bot 3e5b6d1a3c Update sphinx from 1.6.2 to 1.6.3 (#56) 2017-07-03 16:04:28 +01:00
Samuel Colvin 94c2fe553b uprev 2017-06-21 18:22:37 +01:00
Samuel Colvin 92d7689271 Immutability part 2 (#53)
* add construct method, fix #48
* adding copy method
* adding pickle support, fix #40
* tweak copy and add fields copy test
* adding docs for immutability, values and copy
* add docs for pickle
2017-06-21 18:15:08 +01:00
Samuel Colvin 53ba356158 stricter str validation (#52)
* inheritance bug, fix #49

* stricter str validation, fix #45

* couple for test cases

* adding StrictStr
2017-06-21 17:59:58 +01:00
Samuel Colvin bf1c501670 remove linkcheck from docs lint 2017-06-21 16:31:20 +01:00
Samuel Colvin dfcc199769 inheritance bug, fix #49 2017-06-21 14:58:13 +01:00
Samuel Colvin 71a3b45995 speedup benchmarks 2017-06-13 10:15:19 +01:00
Samuel Colvin 6923e5e677 models allowing immutability (#44)
* working on models allowing immutability, ref #38

* up complexity

* use noqa c901

* fixing fields with new processor

* allow_mutation config and tests

* uprev, history and docs

* fix typos
2017-06-13 09:52:47 +01:00
Mickaël Guérin 8364a6b2d6 Add DRF Benchmark (#47) 2017-06-12 18:57:46 +01:00
pyup.io bot 85795a7080 Update pytest from 3.1.1 to 3.1.2 (#46) 2017-06-09 20:29:21 +01:00