-
Notifications
You must be signed in to change notification settings - Fork 290
/
Makefile
20 lines (17 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
lint:
black . --check
# Using `--profile black` to resolve conflict with black
isort . --check --profile black
# Ignoring
# - E501: max line length
# - E203 and W203: They go against PEP8: https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
flake8 . --ignore=E501,E203,W503
# Using the following options:
# --explicit-package-bases: to make mypy work without __init__.py: https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules
# --ignore-missing-imports; to make mypi work without __init__.py: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-ignore-missing-imports
# --install-types --non-interactive: to install missing stub packages for 3rd party libraries for better type checking: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-install-types
mypy . --explicit-package-bases --ignore-missing-imports --install-types --non-interactive
format:
black .
# Using `--profile black` to resolve conflict with black
isort . --profile black