Compare commits

..

2 Commits

Author SHA1 Message Date
Hung 9c4aa2799b more robust nix templates 2023-01-20 10:44:01 -08:00
Hung 1726597501 nvim: ansible is pretty much a finger away from all IT ops 2023-01-19 15:06:25 -08:00
4 changed files with 57 additions and 2 deletions

View File

@ -607,7 +607,7 @@ local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- default language servers
local servers = {
'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'cmake', 'tailwindcss', 'prismals',
'rnix', 'eslint', 'terraformls', 'tflint', 'svelte', 'astro', 'clojure_lsp', "bashls", 'yamlls',
'rnix', 'eslint', 'terraformls', 'tflint', 'svelte', 'astro', 'clojure_lsp', "bashls", 'yamlls', "ansiblels",
"jsonls", "denols"
}
require("mason").setup({

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