[tool.black] exclude = "build" line-length = 80 skip-string-normalization = true [tool.isort] profile = "black" line_length = 80 known_first_party = ["paddle"] skip = ["build", "__init__.py"] extend_skip_glob = [ # These files do not need to be formatted, # see .flake8 for more details "python/paddle/fluid/[!t]**", "python/paddle/fluid/tra**", "python/paddle/utils/gast/**", "python/paddle/fluid/tests/unittests/npu/**", "python/paddle/fluid/tests/unittests/mlu/**", ] [tool.ruff] exclude = [ "./build", "./python/paddle/fluid/[!t]**", "./python/paddle/fluid/tra**", "./python/paddle/utils/gast/**", "./python/paddle/fluid/tests/unittests/npu/**", "./python/paddle/fluid/tests/unittests/mlu/**", ] target-version = "py37" select = [ # Pyupgrade "UP001", "UP003", "UP007", "UP011", "UP013", "UP014", "UP017", "UP019", "UP020", "UP021", "UP022", "UP023", "UP025", "UP026", "UP029", "UP033", "UP035", "UP036", # NumPy-specific rules "NPY001", ] unfixable = [ "NPY001" ] [tool.ruff.per-file-ignores] "__init__.py" = ["F401"] "setup.py" = ["UP036"]