File size: 597 Bytes
c96b98a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

############################################################################
#
# This script validates the phidata codebase using ruff and mypy
# Usage:
#   ./scripts/validate.sh
#
############################################################################

CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$( dirname ${CURR_DIR} )"
source ${CURR_DIR}/_utils.sh

main() {
  print_heading "Validating phidata"
  print_heading "Running: ruff check ${REPO_ROOT}"
  ruff check ${REPO_ROOT}
  print_heading "Running: mypy ${REPO_ROOT}"
  mypy ${REPO_ROOT}
}

main "$@"