Commit Graph

101 Commits

Author SHA1 Message Date
Samuel Colvin eeb5698e75 funky test with create_model 2018-02-06 17:01:55 +00:00
Samuel Colvin 2b8216ab72 remove use of ordered dict (#126)
* remove use of ordered dict

* add history
2018-02-06 15:45:17 +00:00
Samuel Colvin e3444ba7c2 remove .values() from model 2018-02-06 14:40:13 +00:00
Samuel Colvin c18b2bc4fc rename config -> __config__ on a model 2018-02-06 14:39:38 +00:00
Samuel Colvin f9cf6b42f4 Create model method (#125)
* adding create_model method

* adding  method

* docs and tweaks

* prevent config and base together

* tweak docs
2018-02-06 14:29:56 +00:00
Josep Cugat 06008146fe Subclass abcmeta (#123)
* Added compatibility with python's ABC

* Added documentation

* Added link
2018-02-06 13:56:45 +00:00
Samuel Colvin f0fda8c2a4 upgrade pytest-sugar 2018-02-06 13:50:49 +00:00
Samuel Colvin 423137cefe allow pything dates and times (#122)
* allow pything dates and times

* update history
2018-02-01 17:20:06 +00:00
pyup.io bot c17abac2f8 Scheduled monthly dependency update for February (#121)
* Update sphinx from 1.6.5 to 1.6.6

* Update msgpack-python from 0.4.8 to 0.5.1

* Update isort from 4.2.15 to 4.3.0

* Update pytest from 3.3.1 to 3.4.0
2018-02-01 17:05:55 +00:00
pyup.io bot 960a025110 Scheduled monthly dependency update for January (#111)
* Update mypy from 0.550 to 0.560

* Update pytest from 3.3.0 to 3.3.1
2018-01-03 14:29:53 +00:00
pyup.io bot d9acb85e69 Scheduled monthly dependency update for December (#108)
* Update coverage from 4.4.1 to 4.4.2

* Update mypy from 0.540 to 0.550

* Update pytest from 3.2.3 to 3.3.0
2017-12-08 10:28:23 +00:00
Samuel Colvin bc931ba790 safe check for complex models with env settings 2017-11-13 15:12:23 +00:00
Samuel Colvin 7050654062 better tests for validator checks 2017-11-08 15:39:44 +00:00
Samuel Colvin ed2b3f2afd errors for invalid validator use 2017-11-08 15:36:19 +00:00
Samuel Colvin acf3128dcd Validator always (#102)
* validators called always, fix #100

* testing validate always validators

* adding docs
2017-11-08 14:37:01 +00:00
Samuel Colvin ae6f5e7192 prevent duplicate validators (#101)
* prevent duplicate validators

* uprev and history
2017-11-08 13:53:14 +00:00
Samuel Colvin 91f962e533 replace values() with dict() (#99)
* replace values(), with dict(), fix #98

* add history and test
2017-11-07 13:28:42 +00:00
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
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 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 5cf23fb415 Uuid type (#89)
* adding UUID validator, fix #65

* add docs

* uprev
2017-10-23 19:49:52 +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
pyup.io bot 7407f9703a Update mypy from 0.530 to 0.540 (#84) 2017-10-23 15:20:47 +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 de9fd8a4db Update pyflakes from 1.5.0 to 1.6.0 (#75) 2017-08-15 22:14:58 +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 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 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
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 dfcc199769 inheritance bug, fix #49 2017-06-21 14:58:13 +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
pyup.io bot 85795a7080 Update pytest from 3.1.1 to 3.1.2 (#46) 2017-06-09 20:29:21 +01:00
Samuel Colvin 56662690c7 correct tag check, fix pypi deploy 2017-06-07 23:08:34 +01:00
Samuel Colvin ff3fa95eb0 convert values to a function, fix #28 (#43) 2017-06-07 22:40:09 +01:00