Closed fenilgmehta closed 5 months ago
@fenilgmehta Thank you for reporting the issue. Unfortunately, I can't reproduce the problem. Would you happen to have the additional information to find the root cause?
Other users have shared similar problems, but I can't reproduce them in my environment. https://github.com/koxudaxi/ruff-pycharm-plugin/issues/291
https://github.com/koxudaxi/ruff-pycharm-plugin/issues/291
This is a duplicate of this one and will be closed.
Hi team, thanks for this awesome plugin 🙏
Describe the bug The plugin is not taking into account
[per-file-ignores]
To Reproduce Steps to reproduce the behavior:
ruff.toml
Rules to Ignore for matching files.
[per-file-ignores]
"test files" (i.e. unit tests)
"test_*.py" = [ "S101", # Use of assert detected "S311", # Standard pseudo-random generators are not suitable for cryptographic purposes "SLF001", # Private member accessed: {access} ]
Expected behavior The
assert
intest_ruff_rule_in_pycharm.py
should NOT be highlighted like the one shown inScreenshots
section. CLI works perfectly fine.Screenshots![Screenshot_20231002_164541](https://github.com/koxudaxi/ruff-pycharm-plugin/assets/42742240/0d7fe304-2346-43ed-a51f-ad98b9f6a60a)
Environments