-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
138 lines (130 loc) · 2.95 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
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["flit_core >=3.5,<4", "setuptools >=42", "wheel"]
build-backend = "flit_core.buildapi"
[project]
name= 'astrosn'
authors = [{name = "Emir Karamehmetoglu", email = "[email protected]"}]
dynamic = ["version", "description"]
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Astronomy"]
requires-python = '>=3.10'
readme = "README.md"
license = {file = "LICENSE.md"}
dependencies = [
"astropy>=5.0",
"numpy>=1.21",
"pandas",
"svo_filters",
"matplotlib",
"seaborn",
"astroquery",
"corner",
"dust_extinction",
"lmfit",
"mpmath",
"specutils",
"tqdm",
"typing_extensions",
"numdifftools",
"emcee",
"piscola",
"svo_filters",
"requests",
]
[project.urls]
Home = "https://github.com/emirkmo/supernova"
[project.optional-dependencies]
test = [
"pytest >=2.7.3",
"pytest-cov",
"pytest-mpl",
"flake8",
"black",
"isort",
"pre-commit",
"sphinx",
"mypy",
]
flows = [
"tendrils"
]
[tool.black]
line-length = 120
target-version = ['py310']
preview = true
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.idea
| \.mypy_cache
| \.pytest_cache
| buck-out
| build
| dist
| SN2020lao
| README.md
| LICENSE
| htmlcov
)/
'''
[tool.isort]
profile = "black"
known_first_party = "astrosn"
known_third_party = "astropy,corner,dust_extinction,emcee,lmfit,matplotlib,numpy,pandas,pytest,requests,seaborn,specutils,tqdm"
known_standard_library = "contextlib,functools,inspect,os,sys,time,typing"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
use_parentheses = true
ensure_newline_before_comments = true
[tool.pytest.ini_options]
addopts = "--cov=astrosn --cov-report=term-missing --cov-report=html"
python_files = "test_*.py"
testpaths = "tests"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::FutureWarning",
"ignore::UserWarning",
"ignore::RuntimeWarning",
]
[tool.mypy]
implicit_reexport = true
pretty = true
[[tool.mypy.overrides]]
module = [
'astroquery.logger',
'astropy.*',
'mpl_toolkits.*',
'erfa.*',
'matplotlib.colors.*',
'matplotlib.ticker.*',
'matplotlib.transforms.*',
'matplotlib._mathtext.*',
'matplotlib.layout_engine.*',
'matplotlib.text.*',
'matplotlib.textpath.*',
'matplotlib.image.*',
'matplotlib.patches.*',
'matplotlib.offsetbox.*',
'matplotlib.legend.*',
'seaborn.*',
'tendrils.*',
'tqdm.*',
'svo_filters.*',
'astroquery.*',
'specutils.*',
'piscola.*',
'dust_extinction.*',
]
ignore_missing_imports = true
ignore_errors = true
allow_untyped_globals = true
implicit_reexport = true