Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (97 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (97 loc) · 2.69 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
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
103
104
105
106
107
108
109
110
111
112
[tool.poetry]
name = "distance-computation"
version = "0.0.2"
description = "Distance data"
authors = [
"mfiking <mfikingas@gmail.com>",
]
license = "MIT"
readme = "README.md"
documentation = "https://MFStark.github.io/distance-computation"
homepage = "https://MFStark.github.io/distance-computation"
repository = "https://github.com/MFStark/distance-computation"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [
{ include = "distancecomputation", from = "src" }
]
[tool.poetry.dependencies]
python = ">=3.10, <4.0"
click = "*"
[tool.poetry.dev-dependencies]
autoflake = "*"
black = "*"
flake8 = "*"
flake8-bugbear = "*"
flake8-builtins = "*"
flake8-comprehensions = "*"
flake8-debugger = "*"
flake8-eradicate = "*"
flake8-logging-format = "*"
isort = "*"
mkdocstrings = {version = ">=0.18", extras = ["python"]}
mkdocs-material = "*"
mkdocs-table-reader-plugin = "*"
mypy = "*"
pep8-naming = "*"
pre-commit = "*"
pymdown-extensions = "*"
pytest = "*"
pytest-github-actions-annotate-failures = "*"
pytest-cov = "*"
python-kacl = "*"
pyupgrade = "*"
tryceratops = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project.scripts]
my-cli = "distancecomputation.cli:main"
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.black]
target-version = ["py310", "py311", "py312"]
include = '\.pyi?$'
[tool.pytest.ini_options]
addopts = """\
--cov distancecomputation \
--cov tests \
--cov-report term-missing \
--no-cov-on-fail \
"""
[tool.coverage.report]
fail_under = 100
exclude_lines = [
'if TYPE_CHECKING:',
'pragma: no cover'
]
[tool.mypy]
disallow_any_unimported = false
disallow_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = false
check_untyped_defs = true
show_error_codes = true
# Uncomment the following lines and add packages to the "module" list to
# handle mypy errors when 3rd party packages are not typed.
[[tool.mypy.overrides]]
module = ["setuptools", "distance_computation.functions", "pandas", "geopandas", "scipy.ndimage", "matplotlib", "matplotlib.pyplot", "rasterio", "rasterio.mask", "rasterio.plot", "rasterio.crs", "affine"]
ignore_missing_imports = true
[tool.tryceratops]
ignore=["TRY003"]
[tool.autoflake]
ignore-init-module-imports = true