diff --git a/Makefile b/Makefile index 04baeed..4fdb401 100644 --- a/Makefile +++ b/Makefile @@ -4,19 +4,19 @@ JUNIT_FLAGS := --capture=sys -o junit_logging=all .PHONY: lint-black lint-black: ## check python source code formatting issues, with black - black --check --diff --exclude dev_scripts/envs --exclude $(LARGE_TEST_REPO_DIR) ./ + black --check --diff ./ .PHONY: lint-black-apply lint-black-apply: ## apply black's source code formatting suggestions - black --exclude dev_scripts/envs --exclude $(LARGE_TEST_REPO_DIR) ./ + black ./ .PHONY: lint-isort lint-isort: ## check imports are organized, with isort - isort --check-only --skip dev_scripts/envs --skip $(LARGE_TEST_REPO_DIR) ./ + isort --check --diff ./ .PHONY: lint-isort-apply lint-isort-apply: ## apply isort's imports organization suggestions - isort --skip dev_scripts/envs --skip $(LARGE_TEST_REPO_DIR) ./ + isort ./ MYPY_ARGS := --ignore-missing-imports \ --disallow-incomplete-defs \ diff --git a/pyproject.toml b/pyproject.toml index 49cad2e..65d0032 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,9 @@ strip-ansi = "*" [tool.isort] profile = "black" +skip = [".gitignore"] +# This is necessary due to https://github.com/PyCQA/isort/issues/1835 +follow_links = false [build-system] requires = ["poetry>=1.1.4"]