Skip to content

Commit

Permalink
build: pylint before pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Feb 19, 2021
1 parent d6952da commit 71ad051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ help:
@echo 'Run 'make -B' or 'make --always-make' to force a rebuild of all targets'
.PHONY: help

quick: pytest nitpick pre-commit pylint # Run pytest and pre-commit fast, without tox
quick: pytest nitpick pylint pre-commit # Run pytest and pre-commit fast, without tox
.PHONY: quick

full-build: .remove-old-cache .cache/make/long-pre-commit .cache/make/long-poetry .cache/make/lint .cache/make/test .cache/make/doc # Build the project fully, like in CI
Expand All @@ -40,7 +40,7 @@ install: install-pre-commit install-poetry # Install pre-commit hooks and Poetry
.PHONY: install

# Poetry install is needed to create the Nitpick plugin entries on setuptools, used by pluggy
install-poetry .cache/make/long-poetry src/nitpick.egg-info/entry_points.txt: pyproject.toml # Install Poetry dependencies
install-poetry .cache/make/long-poetry: pyproject.toml # Install Poetry dependencies
poetry install -E test -E lint
touch .cache/make/long-poetry
.PHONY: install-poetry
Expand Down
1 change: 0 additions & 1 deletion src/nitpick/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def start(self) -> Iterator[Fuss]:

def post_init(self):
"""Hook for post initialization after the instance was created."""
pass

def _suggest_when_file_not_found(self):
suggestion = self.initial_contents
Expand Down

0 comments on commit 71ad051

Please sign in to comment.