ripe-battery-94204
11/28/2023, 1:18 PMpants fmt :: it says the following:
14:12:16.85 [INFO] Completed: Format with Black - black made no changes.
14:12:16.85 [INFO] Completed: Format with isort - isort made no changes.
14:12:16.85 [INFO] Completed: Format with Black - black made no changes.
14:12:16.85 [INFO] Completed: Format with Black - black made no changes.
14:12:16.85 [INFO] Completed: Format with isort - isort made no changes.
✓ black made no changes.
✓ isort made no changes.
However when I then run pants lint :: , isort gives me an error message (or a warning):
14:12:22.84 [INFO] Completed: Format with Black - black made no changes.
14:12:22.85 [INFO] Completed: Format with Black - black made no changes.
14:12:22.86 [WARN] Completed: Format with isort - isort made changes.
paths/to/files.py
paths/to/files2.py
paths/to/files3.py
…
14:12:22.86 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
Partition: ['CPython==3.10.*']
14:12:22.86 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
Partition: ['CPython==3.10.*']
✓ black succeeded.
✓ flake8 succeeded.
✕ isort failed.
My `mypy.ini`:
[mypy]
warn_return_any = False
warn_unused_configs = False
packages=package1, package2
# Sentence splitter is untyped, ignore imports
[mypy-sentence_splitter.*]
ignore_missing_imports = True
[mypy-scipy.*]
ignore_missing_imports = True
Does anyone know where this discrepancy could come from? I’d like to include pants lint in CI but this stops me from using it. Any help is greatly appreciated!broad-processor-92400
11/28/2023, 7:23 PM--keep-sandboxes=on_failure and jump into the sandbox then run the __run.sh, and compare the changes files, you should be able to determine exactly what the changes are, which would be helpful.happy-kitchen-89482
11/28/2023, 8:36 PMhappy-kitchen-89482
11/28/2023, 8:37 PMhappy-kitchen-89482
11/28/2023, 8:44 PM