Skip to content

Commit

Permalink
Add "codeclimate" make target for running local analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahawker committed Jan 29, 2017
1 parent 74b6a9b commit 12177db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ ratings:
paths:
- "**.py"
exclude_paths:
- .git/
- .idea/
- .tox/
- tests/
- build/
- requirements/
- pylintrc
- Makefile
- "*.md"
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ clean-pyc: ## Remove local python cache files.
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '*~' -exec rm -f {} +

.PHONY: codeclimate
codeclimate: ## Run codeclimate analysis.
@docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$(shell pwd)" \
--volume "$(shell pwd)":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate analyze

.PHONY: bump-patch
bump-patch: ## Bump package patch version, e.g. 0.0.1 -> 0.0.2.
@bumpversion patch
Expand Down

0 comments on commit 12177db

Please sign in to comment.