-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathoutput.py.txt
More file actions
42 lines (32 loc) · 1.06 KB
/
output.py.txt
File metadata and controls
42 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Provide example cases of imports that need sorting and a file that needs formatted."""
import pathlib
from os import access, path
from typing import ( # noqa: F401 - un-used import comment that is actually used, should get removed in --aggressive (auto-generated noqa)
Hashable,
)
from typing import ( # noqa F401: un-used import comment that is actually used, should get removed in --aggressive, used to test transition of comment. (auto-generated noqa)
List,
)
from typing import (
Iterable,
)
import pytest
"""
imports in multiline strings are left alone
>>> import foo, bar
import beef, chicken
"""
class Foo(object): # comment should get moved
"""Provide dummy code."""
o = 5
i = 1
def __init__(self, o: Iterable[int]) -> None:
"""Test class."""
this_method = 1
self.seperator = path.sep * this_method
pass
@pytest.mark.skip(reason="not a test")
def method_to_use_everything(self, x: Iterable[List[Hashable]], p: pathlib.Path):
"Strange method."
x = access(p)
return x