Skip to content

Commit

Permalink
fix: Run lint/format/type-check on entire repo
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Jul 16, 2024
1 parent e3af125 commit b51e124
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions {{cookiecutter.project_name}}/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,21 @@ tree: ## Print directory tree

lint: ## Lint the project
{% if cookiecutter.dependency_manager != 'pip' -%}
poetry run ruff check src --fix
poetry run ruff check . --fix
{%- else -%}
. .venv/bin/activate && ruff check src --fix
. .venv/bin/activate && ruff check . --fix
{%- endif %}

format: ## Format the project
{% if cookiecutter.dependency_manager != 'pip' -%}
poetry run ruff format src
poetry run ruff format .
{%- else -%}
. .venv/bin/activate && ruff format src
. .venv/bin/activate && ruff format .
{%- endif %}

type-check: ## Type-check the project
{% if cookiecutter.dependency_manager != 'pip' -%}
@poetry run mypy src --install-types --non-interactive --ignore-missing-imports --show-error-codes --check-untyped-defs
@poetry run mypy . --install-types --non-interactive --ignore-missing-imports --show-error-codes --check-untyped-defs
{%- else -%}
. .venv/bin/activate && mypy src --install-types --non-interactive --ignore-missing-imports --show-error-codes --check-untyped-defs
. .venv/bin/activate && mypy . --install-types --non-interactive --ignore-missing-imports --show-error-codes --check-untyped-defs
{%- endif %}

0 comments on commit b51e124

Please sign in to comment.