Giter VIP home page Giter VIP logo

pep8-checker's Introduction

Screenshot

made-with-python Code style: black Checked with pylint Checked with flake8 Checked with pydocstyle Checked with interrogate Checked with mypy Build Status Coverage Status License CodeFactor Docker pulls Website Docs

PEP8 checker

This project allows to check your python code complies with pep8 conventions.

It uses bottle python micro web framework and AWS lambda function to execute code on the server.

Please check the official docker image.

Tools

Production

Development

Usage

Usage

Quick start

Please check an app via:

Or launch it via dedicated docker image:

docker run --rm -it vyahello/pep8-checker:0.0.2

Please follow the help instructions further.

Source code

git clone [email protected]:vyahello/pep8-checker.git
python -m checker

Note: please make sure AWS_ENDPOINT environment variable is configured preliminary.

export AWS_ENDPOINT=https://...amazonaws.com/v1

⬆ back to top

Development notes

Docker

Base image

Please use the following command sample to build base docker image:

docker build --no-cache \
         --tag vyahello/pep8-checker:{version} \ 
         --file Dockerfile.base .

Main image

Please use the following command sample to build main docker image:

docker build --no-cache \
         --tag vyahello/pep8-checker:{version} \ 
         --build-arg VERSION={version} \
         --build-arg REPOSITORY=vyahello/pep8-checker \
         --build-arg AWS_ENDPOINT={endpoint} .

Testing

Generally, pytest tool is used to organize testing procedure.

Please follow next command to run unittests:

pytest

CI

Project has Travis CI integration using .travis.yml file thus code analysis (black, pylint, flake8, mypy, pydocstyle and interrogate) and unittests (pytest) will be run automatically after every made change to the repository.

To be able to run code analysis, please execute command below:

./analyse-source-code.sh

Release notes

Please check changelog file to get more details about actual versions and it's release notes.

Meta

Author – Volodymyr Yahello. Please check authors file for more details.

Distributed under the MIT license. See license for more information.

You can reach out me at:

Contributing

I would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:

  1. Clone the repository
  2. Configure git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all development project dependencies
  5. Create your feature branch (git checkout -b feature/fooBar)
  6. Commit your changes (git commit -am 'Add some fooBar')
  7. Push to the branch (git push origin feature/fooBar)
  8. Create a new Pull Request

What's next

All recent activities and ideas are described at project issues page. If you have ideas you want to change/implement please do not hesitate and create an issue.

⬆ back to top

pep8-checker's People

Contributors

vyahello avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pep8-checker's Issues

RuntimeError('Please set API_URL environment variable')

Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.8/site-packages/bottle.py", line 868, in _handle
return route.call(**args)
File "/app/.heroku/python/lib/python3.8/site-packages/bottle.py", line 1748, in wrapper
rv = callback(*a, **ka)
File "/app/.heroku/python/lib/python3.8/site-packages/bottle.py", line 3650, in wrapper
result = func(*args, **kwargs)
File "/app/checker/main.py", line 51, in index
url=api_url(), json={'code': code}
File "/app/checker/main.py", line 17, in api_url
raise RuntimeError('Please set API_URL environment variable')
RuntimeError: Please set API_URL environment variable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.