-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
102 lines (88 loc) · 3.12 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "resampler"
description = "Fast differentiable resizing and warping of arbitrary grids"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
authors = [{name = "Hugues Hoppe", email="[email protected]"}]
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Software Development :: Libraries :: Python Modules',
]
keywords = []
# pip dependencies of the project
dependencies = [
"numpy",
"scipy",
]
# This is set automatically by flit using `*.__version__`
dynamic = ["version"]
[project.urls]
homepage = "https://colab.research.google.com/github/hhoppe/resampler/blob/main/resampler_notebook.ipynb"
repository = "https://github.com/hhoppe/resampler"
documentation = "https://hhoppe.github.io/resampler/resampler.html"
# Other: changelog
[project.optional-dependencies]
# Development deps (unittest, linting, formatting,...)
# Installed through `pip install .[dev]`
dev = [
# "pytest",
# "pytest-xdist",
# "pylint>=2.6.0",
]
[build-system]
requires = ["flit_core >=3.5,<4"]
build-backend = "flit_core.buildapi"
[tool.autopep8]
indent_size = 2
ignore = "E121,E125,E126,E129,E226,E302,E305,E501,W504,E741,E20,W503,E731"
exclude = "Other,resampler_other*,.ipynb_checkpoints"
aggressive = 3
recursive = true
[tool.mypy]
ignore_missing_imports = true
strict = true
exclude = "(^Other|^resampler_other)"
warn_return_any = false # numpy typing is buggy.
[[tool.mypy.overrides]]
module = ["jax.*", "torch.*"] # mypy seems to run forever on jax; and slowly on torch.
follow_imports = "skip"
[tool.pyink]
pyink-indentation = 2
line-length = 100 # Default is 88.
pyink-use-majority-quotes = true
extend-exclude = "(^/Other/|/resampler_other)|(\\.pyi$)|\\.ipynb"
[tool.pylint.main]
disable = [
"fixme", "redefined-builtin", "cell-var-from-loop",
"using-constant-test", "simplifiable-condition", "import-outside-toplevel", "line-too-long",
"too-many-lines", "too-few-public-methods", "too-many-arguments", "too-many-locals",
"use-dict-literal", "unnecessary-lambda-assignment",
# Local.
"too-many-statements", "too-many-branches", "too-many-nested-blocks", "too-many-positional-arguments",
"no-member", # Some members unrecognized for 'torch', 'cv2'.
"duplicate-code",
]
reports = false
score = false
recursive = true
ignore-paths = [".*ipynb_checkpoints", "Other", "resampler_other.*", "^.pytype", ".*/.pytype"]
[tool.pylint.basic]
good-names-rgxs = "^[a-z][a-z0-9]?|[A-Z]([A-Z_]*[A-Z])?$"
[tool.pylint.format]
indent-string = " "
expected-line-ending-format = "LF"
[tool.pytest.ini_options]
addopts = "--ignore-glob '*.#*' --doctest-modules --ignore Old --ignore Other --ignore resampler_other.py --ignore resampler_other_big.py --ignore example_usage.py --ignore resampler_notebook.py"
[tool.pytype]
keep_going = true
exclude = ['Other', 'resampler_other*']
disable = [
# 'ignored-abstractmethod',
]