File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 pip install --no-deps -e .
6060 - run : |
6161 check/pytest-dev-tools
62+ check/mypy-dev-tools
6263
6364 notebooks :
6465 runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cd "${topdir}" || exit $?
1515CONFIG_FILE=' mypy.ini'
1616
1717echo -e -n " \033[31m"
18- mypy --config-file=dev_tools/conf/$CONFIG_FILE " $@ " qualtran/ dev_tools/
18+ mypy --config-file=dev_tools/conf/$CONFIG_FILE " $@ " qualtran/
1919result=$?
2020echo -e -n " \033[0m"
2121
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # ###############################################################################
4+ # Runs mypy on the dev_tools/ folder using a preconfigured mypy.ini file.
5+ #
6+ # Usage:
7+ # check/mypy-dev-tool [--flags]
8+ # ###############################################################################
9+
10+ # Get the working directory to the repo root.
11+ thisdir=" $( dirname " ${BASH_SOURCE[0]} " ) " || exit $?
12+ topdir=" $( git -C " ${thisdir} " rev-parse --show-toplevel) " || exit $?
13+ cd " ${topdir} " || exit $?
14+
15+ CONFIG_FILE=' mypy.ini'
16+
17+ echo -e -n " \033[31m"
18+ mypy --config-file=dev_tools/conf/$CONFIG_FILE " $@ " dev_tools/
19+ result=$?
20+ echo -e -n " \033[0m"
21+
22+ exit ${result}
You can’t perform that action at this time.
0 commit comments