-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
99 lines (84 loc) · 2.09 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
[project]
name = 'gempakIO'
description = 'Read GEMPAK data with pure Python.'
authors = [
{name = 'Nathan Wendt', email = '[email protected]'},
]
readme = 'README.md'
license = {file = 'LICENSE'}
dynamic = ['version']
requires-python = '>=3.9'
dependencies = [
'numpy',
'pandas',
'pyproj',
'xarray'
]
[project.optional-dependencies]
lint = [
'flake8',
'ruff',
'pycodestyle',
'pyflakes',
'flake8-continuation',
'flake8-copyright',
'flake8-isort',
'isort',
'flake8-requirements',
'pydocstyle'
]
test = [
'pytest',
'pytest-cov'
]
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
[project.urls]
homepage = 'https://github.com/nawendt/gempakio'
repository = 'https://github.com/nawendt/gempakio'
[tool.isort]
line_length = 95
known_first_party = ['gempakio']
force_single_line = false
reverse_relative = true
use_parentheses = true
force_sort_within_sections = true
order_by_type = false
sort_relative_in_force_sorted_sections = true
combine_as_imports = true
combine_star = true
[tool.ruff]
line-length = 95
exclude = ['examples']
[tool.ruff.lint]
select = ['A', 'B', 'C', 'CPY001', 'D', 'E', 'E226', 'F', 'G', 'I', 'N', 'NPY', 'Q', 'R', 'S', 'SIM', 'T', 'U', 'W']
ignore = ['F405', 'I001', 'RET504', 'RET505', 'RET506', 'RET507', 'RUF100']
preview = true
explicit-preview-rules = true
[tool.ruff.lint.per-file-ignores]
'src/gempakio/__init__.py' = ['F401']
'tests/*.py' = ['S101']
[tool.ruff.lint.flake8-copyright]
notice-rgx = '(?i)Copyright\s+(\(C\)\s+)?\d{4}'
author = 'Nathan Wendt'
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
multiline-quotes = 'double'
[tool.ruff.lint.isort]
known-first-party = ['gempakio']
force-single-line = false
relative-imports-order = 'closest-to-furthest'
force-sort-within-sections = true
order-by-type = false
combine-as-imports = true
[tool.ruff.lint.mccabe]
max-complexity = 61
[tool.ruff.lint.pydocstyle]
convention = 'numpy'
[tool.setuptools]
zip-safe = true
[tool.setuptools.dynamic]
version = {attr = 'gempakio.__version__'}
[tool.setuptools.packages.find]
where = ['src']