Open signalpillar opened 5 years ago
https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/flakehell.html https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/nitpick.html
hypothesis - Like property based testing? and then auto replacement for expectations
.dir-locals.el
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((python-mode . ((python-shell-interpreter-args . "-m asyncio"))))
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
python-with-base-packages = nixpkgs.python39.withPackages(ps: with ps; [
poetry
]);
in nixpkgs.mkShell {
name = "test";
# https://github.com/mozilla/nixpkgs-mozilla#rust-overlay
buildInputs = [
# to use a specific nighly from the Docker file
(nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rust
(nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rust-analysis
(nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rustc-dev
nixpkgs.rustfmt
nixpkgs.cmake
nixpkgs.cargo
nixpkgs.postgresql
nixpkgs.libiconv
nixpkgs.rustfmt
nixpkgs.darwin.apple_sdk.frameworks.SystemConfiguration
python-with-base-packages
];
# https://nixos.wiki/wiki/Rust
shellHook = ''
# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
export RUST_SRC_PATH="${nixpkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
# https://mgdm.net/weblog/postgresql-in-a-nix-shell/
function init_db {
# Create a database with the data stored in the current directory
initdb --username=postgres --pwprompt -D .tmp/mydb
createdb -U postgres test
}
function start_db {
pg_ctl -D .tmp/mydb -l logfile start
}
function stop_db {
pg_ctl -D .tmp/mydb stop
}
'';
}
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
=SPARKLINE(D50,{"charttype","bar";"max",1;"min",0;"color1",IF(D50>0.6,"green",IF(D50>0.25,"orange","yellow"))})
shell.nix
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
buildInputs = [
pkgs.openjdk17
pkgs.maven
];
shellHook = ''
export JAVA_HOME=${pkgs.openjdk17}/zulu-17.jdk/Contents/Home/
'';
}
.dir-locals.el
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((java-mode . ((eval . (setq
lsp-java-java-path (format "%s/%s" (getenv "JAVA_HOME") "/bin/java")
lsp-java-import-gradle-java-home (format "%s/%s" (getenv "JAVA_HOME") "/bin/java")
lsp-java-import-gradle-enabled t
lsp-java-configuration-runtimes '[(:name "JavaSE-17"
:path (getenv "JAVA_HOME")
:default t)]
)))))
Collect resources to experiment with
Other lists