Skip to content

Commit 2fe8d1c

Browse files
aghastaghast
andauthored
Remove fewer occurrences of .py when cleaning output (#36)
* Remove fewer occurrences of .py when cleaning output * Made changes to satisfy isort * Get isort working in travis Co-authored-by: aghast <none@none>
1 parent 5155ed3 commit 2fe8d1c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
script: 'black --check pytest_mypy_plugins setup.py'
3535
- name: Lint with isort
3636
python: 3.7
37-
script: 'isort --check --diff'
37+
script: 'isort --check --diff .'
3838

3939
before_install: |
4040
# Upgrade pip, setuptools, and wheel

pytest_mypy_plugins/collect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import platform
33
import sys
44
import tempfile
5-
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Mapping
5+
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Mapping, Optional
66

7+
import pystache
78
import pytest
89
import yaml
910
from _pytest.config.argparsing import Parser
1011
from _pytest.nodes import Node
1112
from py._path.local import LocalPath
12-
import pystache
1313

1414
from pytest_mypy_plugins import utils
1515

pytest_mypy_plugins/item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def replace_fpath_with_module_name(line: str, rootdir: Path) -> str:
5353
return line
5454
out_fpath, res_line = line.split(":", 1)
5555
line = os.path.relpath(out_fpath, start=rootdir) + ":" + res_line
56-
return line.strip().replace(".py", "")
56+
return line.strip().replace(".py:", ":")
5757

5858

5959
class ReturnCodes:

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[isort]
22
include_trailing_comma = true
33
multi_line_output = 3
4-
wrap_length = 120

0 commit comments

Comments
 (0)