sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.5k stars 65 forks source link

Can't ignore paths outside the project #396

Closed xshapira closed 5 months ago

xshapira commented 8 months ago

Sourcery doesn't ignore paths outside the project. The errors often stick around even when you close the file, which adds redundant clutter.

I'm using Jedi as a language server in VS Code.

CleanShot 2023-10-26 at 17 14 06@2x

CleanShot 2023-10-26 at 17 38 26@2x

Here is my global sourcery.yaml config file:

rule_settings:
  enable:
  - default
  - gpsg

ignore:
  - .venv/*
  - ~/.vscode/extensions/*
  - ~/.pyenv/versions/*

coding_assistant:
  enabled: true

IDE Version: VS Code 1.83.1

Sourcery Version: Sourcery 1.11.0

Operating system and Version: macOS Monterey 12.7

ruancomelli commented 5 months ago

Hello, @xshapira! Thanks for reaching out!

I was able to reproduce this issue and am already working on a fix :smile:

ruancomelli commented 5 months ago

Hello again, @xshapira!

This issue has now been fixed and will become available in the next Sourcery release :rocket:

Thank you again for reaching out!

xshapira commented 5 months ago

@ruancomelli Thank you!