{"id":25675,"library":"grunt-flake8","title":"grunt-flake8","description":"A Grunt plugin to lint Python projects using flake8, which combines PyFlakes, PEP8, and McCabe's cyclomatic complexity checks. Version 0.1.3, last released in 2014, with no active development. It wraps flake8 as a Grunt task, allowing project-level configuration overrides. Alternatives include direct flake8 invocation or other Python linters.","status":"deprecated","version":"0.1.3","language":"javascript","source_language":"en","source_url":"git://github.com/btholt/grunt-flake8","tags":["javascript","gruntplugin","python","pep8","lint","pyflakes","flake8"],"install":[{"cmd":"npm install grunt-flake8","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-flake8","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-flake8","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: required as Grunt plugin","package":"grunt","optional":false}],"imports":[{"note":"Not a Node module to import; loaded as Grunt task.","wrong":"require('grunt-flake8')","symbol":"flake8 task","correct":"grunt.loadNpmTasks('grunt-flake8');\ngrunt.initConfig({ flake8: { src: ['**/*.py'] } });"}],"quickstart":{"code":"// Install: npm install grunt-flake8 --save-dev\n// Gruntfile.js\nmodule.exports = function(grunt) {\n  grunt.initConfig({\n    flake8: {\n      options: {\n        errorsOnly: false,\n        force: false,\n        maxComplexity: 10,\n        maxLineLength: 100,\n        ignore: ['E501']\n      },\n      src: ['src/**/*.py', 'test/**/*.py']\n    }\n  });\n  grunt.loadNpmTasks('grunt-flake8');\n  grunt.registerTask('default', ['flake8']);\n};","lang":"javascript","description":"Configures a flake8 Grunt task to lint Python files with custom options."},"warnings":[{"fix":"Use direct flake8 invocation or switch to modern Python linting tools.","message":"Package has not been updated since 2014; unmaintained.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Activate the virtual environment before running grunt.","message":"Grunt must be run from within the Python virtual environment where flake8 is installed.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Check flake8 documentation for supported options and test with --verbose.","message":"Options set in Gruntfile override global/project flake8 configurations; some options may be dropped silently.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure grunt-flake8 is installed and run npm install grunt-flake8 --save-dev, then add grunt.loadNpmTasks('grunt-flake8') to Gruntfile.","cause":"grunt.loadNpmTasks('grunt-flake8') missing or package not installed.","error":"Warning: Task \"flake8\" not found. Use --force to continue."},{"fix":"Install flake8 via pip: pip install flake8, and ensure the virtual environment is activated.","cause":"flake8 not installed in current Python environment.","error":"Fatal error: flake8 command not found"},{"fix":"Set options.force: true to continue despite errors, or fix the lint issues.","cause":"Linting errors found and options.force is false.","error":"Running \"flake8:src\" (flake8) task\nWarning: Task \"flake8:src\" failed. Use --force to continue."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}