ci.sh: create
This commit is contained in:
parent
c6688ec8cb
commit
f4c6620007
2 changed files with 43 additions and 0 deletions
8
ci.sh
Executable file
8
ci.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e -x
|
||||
|
||||
# Use shell.nix if possible.
|
||||
|
||||
MYPYPATH=$(pwd)/stubs mypy --strict webapp/__init__.py
|
||||
black webapp
|
||||
black stubs
|
35
shell.nix
Normal file
35
shell.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
let
|
||||
types-wtforms = ps: ps.buildPythonPackage rec {
|
||||
pname = "types-wtforms";
|
||||
version = "3.1.0.20240425";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "types-WTForms";
|
||||
hash = "sha256-Sf/B/lV26gc1t2P/935wYN057MZhJ2y9C0cJmSGzpvI=";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
in pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
poetry
|
||||
(python311.withPackages (ps: with ps; [
|
||||
black
|
||||
ldap
|
||||
flask
|
||||
flask-wtf
|
||||
pillow
|
||||
kerberos
|
||||
(types-wtforms ps)
|
||||
]))
|
||||
cyrus_sasl
|
||||
openldap
|
||||
libkrb5
|
||||
mypy
|
||||
];
|
||||
}
|
Loading…
Add table
Reference in a new issue