|
| 1 | +# docstub 0.3.0 |
| 2 | + |
| 3 | +This release marks the first "Alpha" release of docstub. 🎉 |
| 4 | + |
| 5 | +## Highlights |
| 6 | + |
| 7 | +- **A revamped command line interface** |
| 8 | + Stubs are created with the new subcommand `docstub run` which leaves room to add other subcommands in the future ([#49](https://github.com/scientific-python/docstub/pull/49)). |
| 9 | + The new subcommand also includes two new options `--group-errors` ([#30](https://github.com/scientific-python/docstub/pull/30)) and `--allow-errors` to help with adopting docstub gradually ([#32](https://github.com/scientific-python/docstub/pull/32)). |
| 10 | + |
| 11 | +- **Improved error reporting and statistics** |
| 12 | + When docstub encounters errors in the package it is running on it will now point at the file and line where they are originating from ([#10](https://github.com/scientific-python/docstub/pull/10)). |
| 13 | + Similarly, docstub will report the total number of errors, types that it didn't know where to import from and the total runtime. |
| 14 | + |
| 15 | +- **Improved typing support** |
| 16 | + Module and class attributes can now be typed in docstrings too ([#18](https://github.com/scientific-python/docstub/pull/18)). |
| 17 | + This includes support for the special case of dataclasses ([#26](https://github.com/scientific-python/docstub/pull/26)). |
| 18 | + You can now document generator functions with the "Yields" and "Receives" docstring sections ([#29](https://github.com/scientific-python/docstub/pull/29)). |
| 19 | + For edge cases, that docstub doesn't yet (correctly) support, you can now wrap lines in `# docstub: off` and `# docstub: on`. |
| 20 | + This selectively prevents docstub from changing lines during stub creation ([#25](https://github.com/scientific-python/docstub/pull/25)). |
| 21 | + |
| 22 | +- **Improved configuration** |
| 23 | + Simplified the configuration file. |
| 24 | + Declaring external types should be a lot more straightforward. |
| 25 | + A reference for the configuration file is scheduled for the next release ([#45](https://github.com/scientific-python/docstub/pull/45)). |
| 26 | + |
| 27 | +- We added a **user guide** to get started with using docstub as well as a **reference** for the extended typing syntax that can be used in docstrings ([#24](https://github.com/scientific-python/docstub/pull/24)). |
| 28 | + |
| 29 | +Find a more detailed list of pull requests contributing to this release below. |
| 30 | + |
| 31 | +## Enhancement |
| 32 | + |
| 33 | +- Stub files are now created inplace if no explicit output directory is specified. |
| 34 | + Pre-existing stub files that are not managed by docstub are preserved as before ([#28](https://github.com/scientific-python/docstub/pull/28)). |
| 35 | +- You can now indicate a plural with `(s)` in expressions like `list of int(s)` ([#37](https://github.com/scientific-python/docstub/pull/37)). |
| 36 | + The grammar supporting the typing syntax in docstring should be better behaved for edge cases now. |
| 37 | +- Collect docnames of analyzed source in advance ([#2](https://github.com/scientific-python/docstub/pull/2)). |
| 38 | +- Point to precise line in parsed source for parsing problems ([#10](https://github.com/scientific-python/docstub/pull/10)). |
| 39 | +- Support attributes and type aliases ([#18](https://github.com/scientific-python/docstub/pull/18)). |
| 40 | +- Add direct support for dataclasses ([#26](https://github.com/scientific-python/docstub/pull/26)). |
| 41 | +- Support Yields section and Generator functions ([#29](https://github.com/scientific-python/docstub/pull/29)). |
| 42 | +- Add `--group-errors` option ([#30](https://github.com/scientific-python/docstub/pull/30)). |
| 43 | +- Add `--allow-errors` command line option ([#32](https://github.com/scientific-python/docstub/pull/32)). |
| 44 | +- Support combined NumPyDoc params ([#41](https://github.com/scientific-python/docstub/pull/41)). |
| 45 | + |
| 46 | +## Bug Fixes |
| 47 | + |
| 48 | +- Only use `| None` for optional parameters if appropriate ([#14](https://github.com/scientific-python/docstub/pull/14)). |
| 49 | +- Check test suite with mypy ([#27](https://github.com/scientific-python/docstub/pull/27)). |
| 50 | +- fix check for length 1 literal ([#40](https://github.com/scientific-python/docstub/pull/40)). |
| 51 | +- Allow signed numbers in literals ([#46](https://github.com/scientific-python/docstub/pull/46)). |
| 52 | + |
| 53 | +## Performance |
| 54 | + |
| 55 | +- Types collected while creating stubs for a package are now cached so that the next run is a lot faster ([#15](https://github.com/scientific-python/docstub/pull/15)). |
| 56 | + |
| 57 | +## Documentation |
| 58 | + |
| 59 | +- Attribute copyright to Scientific Python Developers ([#4](https://github.com/scientific-python/docstub/pull/4)). |
| 60 | +- Reword descriptions in manual ([#23](https://github.com/scientific-python/docstub/pull/23)). |
| 61 | +- Refactor and document doctype grammar ([#33](https://github.com/scientific-python/docstub/pull/33)). |
| 62 | +- Add minimal documentation ([#24](https://github.com/scientific-python/docstub/pull/24)). |
| 63 | + |
| 64 | +## Devops |
| 65 | + |
| 66 | +- Add basic CI configuration ([#8](https://github.com/scientific-python/docstub/pull/8)). |
| 67 | +- Enable doctests by default ([#12](https://github.com/scientific-python/docstub/pull/12)). |
| 68 | +- Use mypy.stubtest in CI ([#25](https://github.com/scientific-python/docstub/pull/25)). |
| 69 | +- Check test suite with mypy ([#27](https://github.com/scientific-python/docstub/pull/27)). |
| 70 | +- Check `tests/` with basedpyright in CI in "standard" mode ([#50](https://github.com/scientific-python/docstub/pull/50)). |
| 71 | +- Prepare release of version 0.3.0 ([#51](https://github.com/scientific-python/docstub/pull/51)). |
| 72 | + |
| 73 | +## Maintenance |
| 74 | + |
| 75 | +- Fix python_requires ([#5](https://github.com/scientific-python/docstub/pull/5)). |
| 76 | +- Refactor and document doctype grammar ([#33](https://github.com/scientific-python/docstub/pull/33)). |
| 77 | +- Update import for Generator and Callable types ([#34](https://github.com/scientific-python/docstub/pull/34)). |
| 78 | +- Refactor configuration fields ([#45](https://github.com/scientific-python/docstub/pull/45)). |
| 79 | +- Add minimal documentation ([#24](https://github.com/scientific-python/docstub/pull/24)). |
| 80 | +- Move main CLI functionality into `docstub run` subcommand ([#49](https://github.com/scientific-python/docstub/pull/49)). |
| 81 | + |
| 82 | +## Contributors |
| 83 | + |
| 84 | +3 authors added to this release (alphabetically): |
| 85 | + |
| 86 | +- Lars Grüter ([@lagru](https://github.com/lagru)) |
| 87 | +- Marianne Corvellec ([@mkcor](https://github.com/mkcor)) |
| 88 | +- Oriol Abril-Pla ([@OriolAbril](https://github.com/OriolAbril)) |
| 89 | + |
| 90 | +4 reviewers added to this release (alphabetically): |
| 91 | + |
| 92 | +- Brigitta Sipőcz ([@bsipocz](https://github.com/bsipocz)) |
| 93 | +- Lars Grüter ([@lagru](https://github.com/lagru)) |
| 94 | +- Marianne Corvellec ([@mkcor](https://github.com/mkcor)) |
| 95 | +- Oriol Abril-Pla ([@OriolAbril](https://github.com/OriolAbril)) |
0 commit comments