Linting

Table of contents

  1. Check Python syntax
  2. Auto-fix Python code style
  3. Using flake8 directly

Check Python syntax

rosemary linter

This command is designed to run the linter Flake8 in the app, rosemary and core directories to check the quality of the code.

Auto-fix Python code style

rosemary linter:fix

This command automatically formats and cleans the code in the app, rosemary and core directories, applying tools like Black and Autoflake to fix style issues detected by the linter.

Using flake8 directly

You can run flake8 directly on the desired directories. To do this, run:

flake8 app rosemary core