-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (91 loc) · 3.03 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (91 loc) · 3.03 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "Megatop"
authors = [
{ name = "Baptiste Jost" },
{ name = "Benjamin Beringue" },
{ name = "Simon Biquard" },
{ name = "Amalia Aguilar" },
]
dynamic = ["version"]
description = "A map-based CMB polarization data analysis pipeline"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
dependencies = [
"camb>=1.6.6",
"ducc0>=0.41.0",
"emcee>=3.1.6",
"fgbuster @ git+https://github.com/fgbuster/fgbuster.git",
"getdist>=1.7.6",
"healpy>=1.19.0",
"matplotlib>=3.8",
"numpy>=2.0",
"pixell>=0.31.10",
"pydantic>=2.7",
"pymaster>=2.6",
"pysm3>=3.4.5",
"pyyaml>=6.0",
"scipy<1.18", # TODO: drop cap when https://github.com/cmbant/CAMB/issues/202 is fixed
"tqdm>=4",
]
[project.optional-dependencies]
mpi = [
"mpi4py>=3.1",
]
snake = [
"snakemake>=9.20.0 ; python_version >= '3.11'",
]
[dependency-groups]
dev = ["pytest>=9"]
docs = [
"zensical>=0.0.50",
"mkdocstrings-python>=2.0.3",
"griffe-fieldz>=0.5.0",
]
[project.scripts]
"megatop-compsep-run" = "megatop.pipeline.parametric_separater:main"
"megatop-compsep-plot" = "megatop.plot.comp_sep_plotter:main"
"megatop-map2cl-run" = "megatop.pipeline.map_to_cler:main"
"megatop-map2cl-plot" = "megatop.plot.map2cl_plotter:main"
"megatop-mask-run" = "megatop.pipeline.mask_handler:main"
"megatop-mask-plot" = "megatop.plot.mask_plotter:main"
"megatop-mock-run" = "megatop.pipeline.mocker:main"
"megatop-mock-signal-run" = "megatop.pipeline.mocker:main_signal"
"megatop-mock-noise-run" = "megatop.pipeline.mocker:main_noise"
"megatop-mock-plot" = "megatop.plot.mock_plotter:main"
"megatop-noisecov-run" = "megatop.pipeline.pixel_noisecov_estimater:main"
"megatop-noise-preproc-run" = "megatop.pipeline.noise_preprocesser:main"
"megatop-noisecov-plot" = "megatop.plot.noise_cov_plotter:main"
"megatop-preproc-run" = "megatop.pipeline.preprocesser:main"
"megatop-preproc-plot" = "megatop.plot.preproc_plotter:main"
"megatop-noisespectra-run" = "megatop.pipeline.noise_spectra_estimater:main"
"megatop-noisespectra-plot" = "megatop.plot.noise_spectra_plotter:main"
"megatop-cl2r-run" = "megatop.pipeline.cl2r_estimater:main"
"megatop-cl2r-plot" = "megatop.plot.r_stats_plotter:main"
"megatop-cl2r_mcmc-plot" = "megatop.plot.mcmc_plotter:main"
"megatop-binning-run" = "megatop.pipeline.binner_maker:main"
"megatop-TFcomputing-run" = "megatop.pipeline.TF_computation_interface:main"
[tool.ruff]
fix = true # autofix issues when possible
force-exclude = true # useful with ruff-pre-commit plugin
line-length = 100
exclude = ["scripts"]
[tool.ruff.lint]
extend-select = [
"ARG001", # flake8-unused-function-argument
"EXE", # flake8-executable
"I", # isort
"NPY", # NumPy specific rules
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"T10", # flake8-debugger
"UP", # pyupgrade
]