mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[pycodestyle] Exempt sys.path += ...
calls (E402) (#15980)
## Summary The PR addresses issue #15886 .
This commit is contained in:
parent
d0555f7b5c
commit
24bab7e82e
4 changed files with 40 additions and 25 deletions
7
crates/ruff_linter/resources/test/fixtures/pycodestyle/E402_4.py
vendored
Normal file
7
crates/ruff_linter/resources/test/fixtures/pycodestyle/E402_4.py
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
sys.path += [os.path.dirname(__file__)]
|
||||
sys.path += ["../"]
|
||||
|
||||
from package import module
|
Loading…
Add table
Add a link
Reference in a new issue