\\n\"\n}\n[/block]\n\n\n**Language:** Python \n**Checks: **1 \n**Categories: Compexity** \n**Radon Version: 1.4.2** (version **4.3.2** available via **beta** channel)\n\n[Radon](https://github.com/rubik/radon) provides [Cyclomatic Complexity](doc:cyclomatic-complexity) checks on both Python 2 and Python 3 code.\n\n## Enable the Plugin\n\nTo enable Radon analysis, add the following to your .codeclimate.yml configuration file:\n\n```yaml .codeclimate.yml\nplugins:\n radon: \n enabled: true\n```\n\n**More information about the CLI is available in the README here: **\n\n## Configure the Plugin\n\nRadon defaults to assuming the target project is written for Python 3 but can be configured to use Python 2 syntax by specifying `python_version` in your `.codeclimate.yml`:\n\n```yaml .codeclimate.yml\nplugins:\n radon: \n enabled: true\n config: \n python_version: 2\n```\n\nThe Radon engine can be configured to only report issues over (and including) a configured [radon Grade](http://radon.readthedocs.org/en/latest/commandline.html) threshold. If no threshold is specified, Radon defaults to a \"B\". \n\nA threshold can be specified in your `.codeclimate.yml` as follows: \n\n```yaml .codeclimate.yml\nplugins:\n radon: \n enabled: true\n config: \n threshold: \"C\"\n```\n\nThe threshold represents the lower bound of complexity scores reported.\n\nFor instance, if your radon engine is configured with a threshold of \"B\", any block of code with a Cyclomatic Complexity of 6 or greater will be reported as an issue.\n\n## Using Radon's newer versions\n\nA newer version of Radon is available by specifying the **beta** channel in your `.codeclimate.yml`:\n\n```yaml\nplugins:\n radon:\n enabled: true\n channel: beta\n```","order":37,"isReference":false,"deprecated":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"reusableContent":[],"previousSlug":"","slugUpdatedAt":"2023-05-03T18:17:29.497Z","revision":4,"_id":"57e17235463a9120006d6ed5","project":"57e17235463a9120006d6e7d","createdAt":"2015-12-01T17:00:30.391Z","user":"6802655ea0c31b0038c71658","__v":3,"category":"57e17235463a9120006d6e81","githubsync":"","parentDoc":null,"version":"57e17235463a9120006d6e7f","updatedAt":"2025-04-30T15:48:02.040Z","pendingAlgoliaPublish":false,"lastUpdatedHash":"adf8cbe01660b5963fe3d6af13aa534b620dfc49","isApi":false,"id":"57e17235463a9120006d6ed5"},"meta":{"slug":"radon","type":"docs","parent":null,"image":[],"title":"Radon","title_seo":"Radon","description":"⚠️ Code Climate Quality is being replaced with Qlty Cloud — New users should sign up directly at qlty.sh.— To migrate an existing account, please see our Migration Guide. Language: PythonChecks: 1Categories: CompexityRadon Version: 1.4.2 (version 4.3.2 available via beta channel) Radon provides Cycl...","_id":"57e17235463a9120006d6ed5","hidden":false},"config":{"algoliaIndex":"readme_search_v2","amplitude":{"apiKey":"dc8065a65ef83d6ad23e37aaf014fc84","enabled":true},"asset_url":"https://cdn.readme.io","domain":"readme.io","domainFull":"https://dash.readme.com","encryptedLocalStorageKey":"ekfls-2025-03-27","fullstory":{"enabled":true,"orgId":"FSV9A"},"metrics":{"billingCronEnabled":"true","dashUrl":"https://m.readme.io","defaultUrl":"https://m.readme.io","exportMaxRetries":12,"wsUrl":"wss://m.readme.io"},"proxyUrl":"https://try.readme.io","readmeRecaptchaSiteKey":"6LesVBYpAAAAAESOCHOyo2kF9SZXPVb54Nwf3i2x","releaseVersion":"5.395.0","sentry":{"dsn":"https://3bbe57a973254129bcb93e47dc0cc46f@o343074.ingest.sentry.io/2052166","enabled":true},"shMigration":{"promoVideo":"","forceWaitlist":false,"migrationPreview":false},"sslBaseDomain":"readmessl.com","sslGenerationService":"ssl.readmessl.com","stripePk":"pk_live_5103PML2qXbDukVh7GDAkQoR4NSuLqy8idd5xtdm9407XdPR6o3bo663C1ruEGhXJjpnb2YCpj8EU1UvQYanuCjtr00t1DRCf2a","superHub":{"newProjectsEnabled":true},"wootric":{"accountToken":"NPS-122b75a4","enabled":true}},"context":{"labs":{},"user":{},"terms":[],"variables":{"user":{},"defaults":[]},"project":{"_id":"57e17235463a9120006d6e7d","appearance":{"hideTableOfContents":false,"javascript":"","showVersion":true,"header":{"img_pos":"tl","img_size":"auto","img":[],"style":"solid","linkStyle":"buttons"},"hide_logo":true,"html_footer":"","logo":["https://files.readme.io/XZInkgKTAerd7E4rjoUh_code-climate-logo.png","code-climate-logo.png","280","80","#241c24","https://files.readme.io/2ElCNFp1SWLds6tdHhFX_code-climate-logo.png"],"promos":[{"extras":{"type":"html","buttonPrimary":"get-started","buttonSecondary":""},"title":"Code Climate Quality Documentation","text":"","_id":"5653462e0672922b003be690"}],"html_footer_meta":"","html_promo":"\n
\n \n\n
\n \n
\n ⚠️\n Code Climate Quality is being replaced with Qlty Cloud\n
\n \n
\n
\n — New users should sign up directly at qlty.sh\n
\n
\n — To migrate an existing account, please see our Migration Guide\n
\n
\n \n
\n\n\n
\n
\n
\n\n\n Need help with Code Climate Quality?Look no further.\n