Wykres commitów

27 Commity (perf-debug)

Autor SHA1 Wiadomość Data
nyanpasu64 a655f562f8
Switch to new Black version (21.6b0), reformat project (#374)
I also fixed pre-commit hooks on machines without Python 3.6 installed.

I don't like how Black now removes leading and trailing spaces in
doc comments, but it is what it is.
2021-06-14 15:09:24 -07:00
nyanpasu64 734afb2658 new username uwu 2020-03-20 07:44:07 -07:00
nyanpasu64 dfb0ee3702 Fix Windows-only crash when opening a non-ASCII path and restarting corrscope (#311) 2019-08-29 02:30:50 -07:00
nyanpasu64 a12196e333 Add support for excluding fields from always_dump="*" (#268) 2019-04-13 11:35:29 -07:00
nyanpasu64 5ec7b463aa Dump underscore-prefixed fields, refactor config dumping (#255)
If I decide to revert to not dumping _fields:
keep the tests and refactorings, and manually rewrite the changes.
2019-04-04 19:08:59 -07:00
nyanpasu64 1d6b309017 Make DumpableAttrs's subclasses inherit/merge always_dump (#216) 2019-03-05 22:35:53 -08:00
nyanpasu64 e21aeef072 Improve handling of init=False or _fields, fix crashes
- Don't dump init=False fields
- Don't crash when loading init=False fields
- Pass field to __init__(field), if internally named _field

Fixes crash when playing PostTriggerConfig from GUI.
2019-03-05 21:10:00 -08:00
nyanpasu64 15617b8123 Prevent YAML dump from line-breaking long paths (#207)
Add test to ensure YAML-dumping long paths does not line-break.
2019-02-24 12:59:46 -08:00
nyanpasu64 3835421a09 Add unit suffix metadata to config classes 2019-02-10 23:31:07 -08:00
nyanpasu64 e90ccd853a Make unrecognized fields yield warning, not exception (#160) 2019-01-27 20:38:23 -08:00
nyanpasu64 b0da03cc47 Refactor config system to use inheritance, not decorator
Validate DumpableAttrs always_dump strings
2019-01-20 16:21:36 -08:00
nyanpasu64 70d6cfc1a2 Run black on code 2019-01-03 13:00:18 -08:00
nyanpasu64 5c47c293cb Rename ovgenpy to corrscope 2018-12-22 18:39:03 -08:00
nyanpasu64 021e157894 Update ruamel.yaml to 0.15.70, add behavior tests 2018-12-18 20:53:23 -08:00
nyanpasu64 027ba504bd When loading invalid config, wrap exceptions with OvgenError
Fix unit test (switching to OvgenError)
2018-12-18 20:53:23 -08:00
nyanpasu64 a78c3712c9 Switch from keyword_dataclasses to attrs, fix Python 3.7
keyword_dataclasses works on 3.6 and 3.6 only. attrs works everywhere.

Validators and converters are not used yet.
2018-11-26 18:00:30 -08:00
nyanpasu64 98a13e9c5b Add Ignored object, for discarding config fields 2018-08-25 22:25:09 -07:00
nyanpasu64 56438bed5c Add Alias class, for config field aliasing 2018-08-25 22:19:09 -07:00
nyanpasu64 a2237e09d6 Cleanup unit-test files 2018-08-24 01:46:33 -07:00
nyanpasu64 d9555c101e Add unit test for YAML config loading validation 2018-08-19 16:15:51 -07:00
nyanpasu64 06159555a1 Disable test for config type checking 2018-08-14 02:20:07 -07:00
nyanpasu64 f2af4299b2 Import dataclass from config (either dataclasses or keyword_dataclasses) 2018-07-29 06:35:35 -07:00
nyanpasu64 7f0e1ccaba (Config YAML) Add support for always dumping default fields
@register_config(always_dump='field names || *')
2018-07-29 06:35:17 -07:00
nyanpasu64 1124c46f1e Type-check fields, when loading config dataclasses from YAML 2018-07-29 06:35:15 -07:00
nyanpasu64 648829b4d9 Exclude default fields from YAML dumping. Add dumping unit tests. 2018-07-25 05:19:46 -07:00
nyanpasu64 a87642b38c Rename register_dataclass to register_config 2018-07-25 05:19:45 -07:00
nyanpasu64 65655b2645 [wip] Make config classes dumpable via YAML, rename base configs 2018-07-25 05:19:45 -07:00