lint.sh 678 B

12345678910111213141516171819
  1. #! /usr/bin/env bash
  2. set -ex
  3. # Keep this up to date with the CI config at .github/workflows/pipeline.yml
  4. black sydent/ stubs/ tests/ matrix_is_test/ scripts/ setup.py
  5. flake8 sydent/ tests/ matrix_is_test/ scripts/ setup.py
  6. # There's a different convention for formatting stub files.
  7. # Ignore various error codes from pycodestyle that we don't want
  8. # to enforce for stubs. (We rely on `black` to format stubs.)
  9. # E301, E302 and E305 complain about missing blank lines.
  10. # E701 and E7044 complains when we define a function or class entirely within
  11. # one line.
  12. flake8 stubs/ --ignore E301,E302,E305,E701,E704
  13. isort sydent/ stubs/ tests/ matrix_is_test/ scripts/ setup.py
  14. mypy