{"id":13733946,"url":"https://github.com/MartinThoma/flake8-scream","last_synced_at":"2025-05-08T10:30:36.978Z","repository":{"id":42664352,"uuid":"474316419","full_name":"MartinThoma/flake8-scream","owner":"MartinThoma","description":"❄️🙀 Flake8 plugin that contains rules which do have known false-positives - it might still be useful for a one-time run","archived":false,"fork":false,"pushed_at":"2022-11-19T14:50:40.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T01:43:23.774Z","etag":null,"topics":["flake8","flake8-plugin","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/MartinThoma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T10:40:03.000Z","updated_at":"2025-02-18T17:13:41.000Z","dependencies_parsed_at":"2023-01-22T15:00:49.669Z","dependency_job_id":null,"html_url":"https://github.com/MartinThoma/flake8-scream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fflake8-scream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fflake8-scream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fflake8-scream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fflake8-scream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinThoma","download_url":"https://codeload.github.com/MartinThoma/flake8-scream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045528,"owners_count":21845718,"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":["flake8","flake8-plugin","python"],"created_at":"2024-08-03T03:00:51.139Z","updated_at":"2025-05-08T10:30:36.650Z","avatar_url":"https://github.com/MartinThoma.png","language":"Python","readme":"[![PyPI version](https://badge.fury.io/py/flake8-scream.svg)](https://badge.fury.io/py/flake8-scream)\n[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/MartinThoma/flake8-scream)\n[![Actions Status](https://github.com/MartinThoma/flake8-scream/workflows/Unit%20Tests/badge.svg)](https://github.com/MartinThoma/flake8-scream/actions)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# flake8-scream\n\nA [flake8](https://flake8.pycqa.org/en/latest/index.html) plugin that helps you scream your code.\n\n\n## Rules\n\n* [`SCR119`](https://github.com/MartinThoma/flake8-simplify/issues/37) ![](https://shields.io/badge/-legacyfix-inactive): Use dataclasses for data containers ([example](#SCR119))\n* [`SCR902`](https://github.com/MartinThoma/flake8-simplify/issues/125): Use keyword-argument instead of magic boolean ([example](#SCR902))\n* `SCR903`: Use keyword-argument instead of magic number ([example](#SCR903))\n\n## Disabling Rules\n\nYou might have good reasons to\n[ignore some flake8 rules](https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html).\nTo do that, use the standard Flake8 configuration. For example, within the `setup.cfg` file:\n\n```python\n[flake8]\nignore = SCR106, SCR113, SCR119, SCR9\n```\n\n## Examples\n\n### SCR119\n\nDataclasses were introduced with [PEP 557](https://www.python.org/dev/peps/pep-0557/)\nin Python 3.7. The main reason not to use dataclasses is to support legacy Python versions.\n\nDataclasses create a lot of the boilerplate code for you:\n\n* `__init__`\n* `__eq__`\n* `__hash__`\n* `__str__`\n* `__repr__`\n\nA lot of projects use them:\n\n* [black](https://github.com/psf/black/blob/master/src/black/__init__.py#L1472)\n\n### SCR902\n\n```python\n# Bad\nfoo(False)\nbar(True)\n\n# Good\nfoo(verbose=False)\nbar(enable_magic=True)\n```\n\nThe false-positives that are currentl not possible to fix are in positional-only\narguments. There is no way to determine in the AST given by Flake8 if a function\nhas positional-only arguments.\n\n### SCR903\n\n```python\n# Bad\nfoo(42, 1.234)\n\n# Good\nfoo(the_answer=42, flux_compensation=1.234)\n```\n\nThe false-positives that are currentl not possible to fix are in positional-only\narguments. There is no way to determine in the AST given by Flake8 if a function\nhas positional-only arguments.\n","funding_links":[],"categories":["Clean code"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMartinThoma%2Fflake8-scream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMartinThoma%2Fflake8-scream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMartinThoma%2Fflake8-scream/lists"}