forked from wemake-services/wemake-python-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 595 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 595 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SHELL:=/usr/bin/env bash
.PHONY: format
format:
poetry run ruff format
poetry run ruff check
.PHONY: lint
lint:
poetry run ruff check --exit-non-zero-on-fix
poetry run ruff format --check --diff
poetry run flake8 .
poetry run mypy wemake_python_styleguide scripts
poetry run lint-imports
poetry run python3 scripts/check_generic_visit.py wemake_python_styleguide/visitors/ast
.PHONY: unit
unit:
poetry run pytest
.PHONY: package
package:
# TODO: re-enable when poetry@2.0 support will be fixed
# poetry run poetry check
poetry run pip check
.PHONY: test
test: lint unit package