Skip to main content

flake8 formatter for Phabricator's Harbormaster

Project description

flake8-phabricator-formatter

A simple formatter plugin for flake8 that generates json formatted results suitable for Phabricator's Harbormaster integraton, according to this documentation

As such, it's mainly dedicated to being used in Jenkins with the Phabricator Jenkins Plugin.

Example

flake8 --format=phabricator
{"context": "def some_stuff(toto):\n", "char": 1, "code": "E302", "line": 3, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "expected 2 blank lines, found 1"}
{"context": "  print ('with flake8 errors')\n", "char": 3, "code": "E303", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "too many blank lines (2)"}
{"context": "  print ('with flake8 errors')\n", "char": 3, "code": "E111", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "indentation is not a multiple of four"}
{"context": "  print ('with flake8 errors')\n", "char": 8, "code": "E211", "line": 6, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "whitespace before '('"}
{"context": "  toto = 42\n", "char": 3, "code": "E111", "line": 7, "name": "flake8", "severity": "error", "path": "sandbox/__init__.py", "description": "indentation is not a multiple of four"}
{"context": "  toto = 42\n", "char": 3, "code": "F841", "line": 7, "name": "flake8", "severity": "advice", "path": "sandbox/__init__.py", "description": "local variable 'toto' is assigned to but never used"}
{"context": "  \n", "char": 1, "code": "W293", "line": 8, "name": "flake8", "severity": "warning", "path": "sandbox/__init__.py", "description": "blank line contains whitespace"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-phabricator-formatter-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file flake8-phabricator-formatter-0.1.1.tar.gz.

File metadata

  • Download URL: flake8-phabricator-formatter-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3

File hashes

Hashes for flake8-phabricator-formatter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a292809a0c788499b9e037d8e9fe0ef18702e0608198e44dcb7c0dd7789192e1
MD5 1d634774707fb0f3a4c0b3c3fda3fb67
BLAKE2b-256 1b4c0c0dba9391ca13bc8d44124e3e5c3309517055cbbe537f9182c6932285db

See more details on using hashes here.

File details

Details for the file flake8_phabricator_formatter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_phabricator_formatter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.3

File hashes

Hashes for flake8_phabricator_formatter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40e06fe46ccc5a08b53c865c86b9351ab8f0640820026032f01982a858fc64b4
MD5 efb582ec78940848530dee0b0b02c9a5
BLAKE2b-256 c7a397cfb4db677e8d8a295a8d310d9139b3fe73fbadec1ac9b7a64633b386de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page