How can I set up inspection rules? For example Pylint?

I am new to Lua.

Before this, I usually use pylint to check my python code, but I don’t know how to set it in pyright, can you tell me how to do it?

You can’t use pylint in pyright. You should try a linting plugin like nvim-lint:

Timely reply! Thank you very much