-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (113 loc) · 2.58 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "pism-ragis"
version = "0.2.2"
maintainers = [{name = "Andy Aschwanden", email = "[email protected]"}]
description = """Home of NASA ROSES project "A Reanalysis of the Greenland Ice Sheet"""
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPL 3.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Postprocessing",
]
dynamic = ["dependencies"]
[project.scripts]
compute_domain_bounds = "pism_ragis.tools:compute_domain_bounds"
[tool.setuptools.packages.find]
include = ["pism_ragis"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = ["pism_ragis"]
[tool.setuptools.package-data]
"pism_ragis" = ['logging.conf', 'data/*.txt', 'data/*.gpkg', 'data/*.toml']
[tool.flake8]
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
ignore = """
E203,
E501,
W503,
W605,
C901,
F841,
E722,
E402,
F722,
"""
# Max width of Github code review is 119 characters
max-line-length = 119
max-complexity = 18
exclude = [
".tox",
".git",
"*/migrations/*",
".mypy_cache",
".pytest_cache",
"*__init__.py",
"venv"
]
[tool.isort]
multi_line_output = 3
include_trailing_comma = "True"
force_grid_wrap = 0
use_parentheses = "True"
line_length = 88
[tool.pycodestyle]
max-line-length = 119
exclude = [
".tox",
".git",
"*/migrations/*",
".mypy_cache",
".pytest_cache",
"*__init__.py",
"venv"
]
[tool.mypy]
python_version = 3.11
check_untyped_defs = "True"
ignore_missing_imports = "True"
warn_unused_ignores = "True"
warn_redundant_casts = "True"
warn_unused_configs = "True"
[[tool.mypy.overrides]]
module = "pism_ragis.*"
ignore_missing_imports = true
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| _build
| conda
| docs
)/
'''
[tool.pylint.messages_control]
disable = """
too-many-lines,
too-many-positional-arguments,
no-else-return,
bare-except
"""
[tool.pylint.format]
max-line-length = 120
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"EX01",
"SA01",
"ES01",
]