Skip to content

Update to radon 6.0.1 and remove unnecessary code #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2.1
orbs:
python: circleci/python@2.1.1
jobs:
build_and_test:
executor: python/default
steps:
- checkout
- make image
- make test
workflows:
build_test_deploy:
jobs:
- build
13 changes: 0 additions & 13 deletions .codeclimate.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

177 changes: 0 additions & 177 deletions CHANGELOG

This file was deleted.

17 changes: 7 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
FROM alpine:edge
FROM alpine:3.18.0
MAINTAINER rubik

WORKDIR /usr/src/app
COPY . /usr/src/app

COPY requirements.txt /usr/src/app

RUN apk --update add \
python2 python3 py2-pip && \
pip2 install --upgrade pip && \
pip2 install --requirement requirements.txt && \
pip2 install . && \
mv /usr/bin/radon /usr/bin/radon2 && \
python3 py3-pip && \
pip3 install --requirement requirements.txt && \
pip3 install . && \
mv /usr/bin/radon /usr/bin/radon3 && \
rm /var/cache/apk/*

COPY . /usr/src/app

RUN adduser -u 9000 app -D
USER app

WORKDIR /code

VOLUME /code

CMD ["/usr/src/app/codeclimate-radon"]
CMD ["/usr/src/app/bin/codeclimate-radon"]
22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

9 changes: 0 additions & 9 deletions MANIFEST.in

This file was deleted.

33 changes: 6 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@
.PHONY: tests cov htmlcov pep8 pylint docs dev-deps test-deps publish coveralls
.PHONY: image

tests:
python radon/tests/run.py
IMAGE_NAME ?= codeclimate/codeclimate-radon

cov:
coverage erase && coverage run --include "radon/*" --omit "radon/__init__.py,radon/cli.py,radon/tests/*" radon/tests/run.py
coverage report -m
image:
docker build -t $(IMAGE_NAME) .

htmlcov: cov
coverage html

pep8:
pep8 radon --exclude "radon/tests" --ignore "E731"

pylint:
pylint --rcfile pylintrc radon

docs:
cd docs && make html

test-deps:
pip install -r test_requirements.pip

publish:
python setup.py sdist bdist_wheel upload
python setup.py develop

coveralls: test-deps cov
coveralls
test: image
docker run -it $(IMAGE_NAME) sh -c "cd /usr/src/app && pytest -p no:cacheprovider"
15 changes: 0 additions & 15 deletions Pipfile

This file was deleted.

Loading