-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
76 lines (67 loc) · 1.49 KB
/
pyproject.toml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[build-system]
requires = [
"setuptools>=42",
"setuptools_scm[toml]>=3.4",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# See link below for available options
# https://github.com/pypa/setuptools_scm/#configuration-parameters
write_to = "pystiche/_version.py"
version_scheme = "release-branch-semver"
local_scheme = "node-and-timestamp"
[tool.isort]
# See link below for available options
# https://timothycrosley.github.io/isort/docs/configuration/options/
profile = "black"
line_length = 88
skip_gitignore = true
float_to_top = true
color_output = true
order_by_type = true
combine_star = true
filter_files = true
extra_standard_library = ["importlib_metadata"]
known_third_party = [
"dill",
"igittigitt",
"jinja2",
"light-the-torch",
"matplotlib",
"numpy",
"PIL",
"pillow_affine",
"pyimagetest",
"pytest",
"pytorch_testing_utils",
"requests",
"sphinx_gallery",
"yaml",
]
known_pytorch = ["torch", "torchvision"]
known_first_party = ["pystiche"]
known_local_folder = ["tests", "utils"]
sections= ["FUTURE", "STDLIB", "THIRDPARTY", "PYTORCH", "FIRSTPARTY", "LOCALFOLDER"]
skip = [
"pystiche/__init__.py",
"pystiche/image/__init__.py",
]
[tool.black]
# See link below for available options
# https://github.com/psf/black#configuration-format
line-length = 88
target-version = ["py36"]
exclude = '''
/(
\.git
| \.github
| \.venv
| \.tox
| \.mypy_cache
| \.pytest_cache
| __pycache__
| docs/build
| docs/source/galleries
)/
'''