{"id":13684210,"url":"https://github.com/loadsmart/danger-pep8","last_synced_at":"2025-04-30T20:33:24.913Z","repository":{"id":59152706,"uuid":"74613209","full_name":"loadsmart/danger-pep8","owner":"loadsmart","description":"A Danger plugin for Python's PEP 8","archived":true,"fork":false,"pushed_at":"2020-02-11T12:45:26.000Z","size":43,"stargazers_count":9,"open_issues_count":3,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-15T00:51:49.752Z","etag":null,"topics":["danger","lint","pep8","python"],"latest_commit_sha":null,"homepage":"https://www.python.org/dev/peps/pep-0008/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loadsmart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2016-11-23T20:53:46.000Z","updated_at":"2023-08-19T22:45:04.000Z","dependencies_parsed_at":"2022-09-13T10:50:25.936Z","dependency_job_id":null,"html_url":"https://github.com/loadsmart/danger-pep8","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-pep8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-pep8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-pep8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-pep8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadsmart","download_url":"https://codeload.github.com/loadsmart/danger-pep8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224224786,"owners_count":17276428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danger","lint","pep8","python"],"created_at":"2024-08-02T14:00:30.948Z","updated_at":"2025-04-30T20:33:24.900Z","avatar_url":"https://github.com/loadsmart.png","language":"Ruby","funding_links":[],"categories":["Plugins"],"sub_categories":["Ruby (danger)"],"readme":"[![CircleCI](https://circleci.com/gh/loadsmart/danger-pep8.svg?style=svg)](https://circleci.com/gh/loadsmart/danger-pep8)\n\n**IMPORTANT: This repository is not being maintained anymore.**\n\n# danger-pep8\n\nFind [PEP 8](https://www.python.org/dev/peps/pep-0008/) issues in python files.\n\n## Installation\n\n### Via global gems\n\n```\n$ gem install danger-pep8\n```\n\n### Via Bundler\n\nAdd the following line to your Gemfile and then run `bundle install`:\n\n```rb\ngem 'danger-pep8'\n```\n\n## Usage\n\n### Basic\n\nCheck for issues running the script from current directory. Prints a markdown table with all issues found:\n```rb\npep8.lint\n```\n\n### Advanced\n\n#### Running from a custom directory\n\nChanges root folder from where script is running:\n```rb\npep8.base_dir = \"src\"\npep8.lint\n```\n\n#### Use GitHub's inline comments instead of a markdown table\n\n```rb\npep8.lint(use_inline_comments=true)\n```\n\n#### Running using a configuration file different than the usual\n\nIf you need to specify a different configuration file, use the `config_file` parameter below. Check [this link](http://flake8.pycqa.org/en/latest/user/configuration.html#configuration-locations) for more information about Configuration Locations.\n```rb\npep8.config_file = \".flake8_ci\"\npep8.lint\n```\n\n#### Printing a warning message with number of errors\n\nAdds an entry onto the warnings/failures table:\n```rb\npep8.count_errors\n```\n\n#### Defining a threshold of max errors\n\nWarns if number of issues is greater than a given threshold:\n```rb\npep8.threshold = 10\npep8.count_errors\n```\n\nFails if number of issues is greater than a given threshold:\n```rb\npep8.threshold = 10\npep8.count_errors(should_fail = true)\n```\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fdanger-pep8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadsmart%2Fdanger-pep8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fdanger-pep8/lists"}