more robust nix templates

pull/8/head
Hung 2023-01-20 10:44:01 -08:00
parent 1726597501
commit 9c4aa2799b
3 changed files with 56 additions and 1 deletions

View File

@ -55,6 +55,9 @@ let
pkgs.nodePackages.pyright
pkgs.python3Packages.pylint
pkgs.python3Packages.flake8
# pkgs.ansible-lint
pkgs.python38Packages.ansible
pkgs.ansible-language-server
# TODO: the devShell should provide rust-analyzer so that
# cargo test builds binaries compatible with rust-analyzer

View File

@ -0,0 +1,52 @@
# A Python project that uses Poetry for packaging and package management
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
- Bootstrapped with [pegasust/dotfiles](https://git.pegasust.com/pegasust/dotfiles)
- Provides [devShell (`nix develop`)](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-develop.html),
[shell.nix (`nix-shell -p ./`)](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html)
- Install [nix-direnv](https://github.com/nix-community/nix-direnv) here for automatic
dev-shell integration
## Bootstrapping the project
- This repo uses [poetry](https://python-poetry.org/docs/cli/#init), a repo-manager
with an intuitive CLI
```sh
poetry init
```
### Libraries worth integrating
- [tophat/syrupy](https://github.com/tophat/syrupy) Snapshot testing plugin for (builtin) pytest
```sh
poetry add --group dev syrupy
```
- [HypothesisWorks/hypothesis](https://github.com/HypothesisWorks/hypothesis)
Hypothesis testing (generate testing data) framework - data driven testing.
```sh
poetry add --group dev hypothesis
```
- [requests](https://github.com/psf/requests) An intuitive way to perform network requests in Python
```sh
poetry add requests
```
- [plotly](https://github.com/plotly/plotly.py) Create plots.
```sh
poetry add plotly
```
- [toolz](https://github.com/pytoolz/toolz) Functional programming in Python
- Beware, you might lose typesafety doing this, but this is what the
[REPL](https://github.com/Olical/conjure/wiki/Quick-start:-Python-(stdio))
is invented to mitigate.

View File

@ -35,7 +35,7 @@ for logging needs
### Library development
- [proptest](https://lib.rs/crates/proptest) for hyppothesis testing
- [proptest](https://lib.rs/crates/proptest) for hypothesis testing
- Data-driven testing starts with proptest