{"id":23732,"library":"flake8-coding","title":"flake8-coding","description":"Flake8 plugin that checks for a proper Python coding magic comment (e.g., # -*- coding: utf-8 -*-) at the top of files. Version 1.3.2 is the latest release as of 2021, with no active development.","status":"maintenance","version":"1.3.2","language":"python","source_language":"en","source_url":"https://github.com/tk0miya/flake8-coding","tags":["flake8","plugin","coding","magic comment","pycodestyle"],"install":[{"cmd":"pip install flake8-coding","lang":"bash","label":"standard install"}],"dependencies":[{"reason":"required plugin host","package":"flake8","optional":false}],"imports":[],"quickstart":{"code":"pip install flake8-coding\nflake8 --select=C101,C102,C103 your_file.py","lang":"python","description":"Install the plugin and run flake8 with the coding checks enabled (C101, C102, C103)."},"warnings":[{"fix":"Consider if you still need this check; use `--ignore=C101` to suppress.","message":"Python 3 no longer requires coding magic comments (default is UTF-8). Many projects consider this check outdated.","severity":"deprecated","affected_versions":"1.3.2"},{"fix":"Run flake8 with `--select=C1` or include in your flake8 config: `select = C1`.","message":"The plugin only activates if you explicitly select the C1xx error codes. It is not enabled by default.","severity":"gotcha","affected_versions":"1.3.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Do not import flake8_coding in your code. It is auto-discovered by flake8 when installed.","cause":"Importing the plugin directly instead of as a flake8 plugin.","error":"ModuleNotFoundError: No module named 'flake8_coding'"},{"fix":"Use `flake8 --select=C101 myfile.py` or add `select = C101` in .flake8 config.","cause":"--select is a flake8 option, but using it before a file may cause confusion with older versions.","error":"flake8: error: unrecognized arguments: --select=C101"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}