Skip to content

Commit

Permalink
makefile: introduce check-copyright target, and add it to lint-all
Browse files Browse the repository at this point in the history
Before this commit, the copyright check was only done in the CI. With this
change we can also do it locally.
  • Loading branch information
muxator committed Feb 24, 2024
1 parent 7196302 commit 366d3e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ BROWSER := python -c "$$BROWSER_PYSCRIPT"
help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)

.PHONY: check-copyright
check-copyright: ## check that the copyright notice is consistent across the code base
scripts/check_copyright.py

.PHONY: clean
clean: clean-build clean-pyc clean-test clean-docs ## remove all build, test, coverage and Python artifacts

Expand Down Expand Up @@ -63,7 +67,7 @@ clean-test: ## remove test and coverage artifacts
rm -fr coverage.xml

.PHONY: lint-all
lint-all: black ruff static bandit safety vulture darglint ## run all linters
lint-all: black check-copyright ruff static bandit safety vulture darglint ## run all linters

.PHONY: lint-all-files
lint-all-files: black-files ruff-files static-files bandit-files vulture-files darglint-files ## run all linters for specific files (specified with files="file1 file2 somedir ...")
Expand Down

0 comments on commit 366d3e0

Please sign in to comment.