-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
126 lines (114 loc) · 3.39 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
[build-system]
requires = ["setuptools>=60", "wheel", "setuptools_scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name="hera_qm"
authors=[
{name = "HERA Team"}
]
description="HERA Data Quality Metrics."
license= {text= "MIT"}
requires-python = ">=3.9"
dependencies = [
"numpy>1.23",
"astropy>=5.0.4",
"h5py>=3.1",
"pyyaml",
"pyuvdata>=3.0",
"hera_filters"
]
classifiers = [
"Programming Language :: Python :: 3",
]
dynamic = ["readme", "version"]
[project.urls]
repository="https://github.com/HERA-Team/hera_qm"
# documentation="https://hera_qm.readthedocs.io"
[tool.setuptools.dynamic]
readme = {file = ["README.md"]}
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"hera-calibration",
]
all = [
"hera_qm[tests]"
]
[project.scripts]
"ant_metrics_run.py" = "hera_qm.scripts.ant_metrics_run:main"
"auto_metrics_run.py" = "hera_qm.scripts.auto_metrics_run:main"
"xrfi_run.py" = "hera_qm.scripts.xrfi_run:main"
"firstcal_metrics_run.py" = "hera_qm.scripts.firstcal_metrics_run:main"
"auto_view.py" = "hera_qm.scripts.auto_view:main"
"omnical_metrics_run.py" = "hera_qm.scripts.omnical_metrics_run:main"
"xrfi_apply.py" = "hera_qm.scripts.xrfi_apply:main"
"delay_xrfi_h1c_idr2_1_run.py" = "hera_qm.scripts.delay_xrfi_h1c_idr2_1_run:main"
"xrfi_h1c_run.py" = "hera_qm.scripts.xrfi_h1c_run:main"
"xrfi_day_threshold_run.py" = "hera_qm.scripts.xrfi_day_threshold_run:main"
"xrfi_h3c_idr2_1_run.py" = "hera_qm.scripts.xrfi_h3c_idr2_1_run:main"
"xrfi_h3ca_rtp_run.py" = "hera_qm.scripts.xrfi_h3ca_rtp_run:main"
"xrfi_run_data_only.py" = "hera_qm.scripts.xrfi_run_data_only:main"
[tool.setuptools_scm]
write_to = "hera_qm/_version.py"
parentdir_prefix_version = "hera_qm-"
fallback_version = "0.0.0"
[tool.pytest.ini_options]
addopts = "--ignore=hera_qm/scripts --cov=hera_qm --cov-config=.coveragerc"
[tool.ruff]
line-length = 88
target-version = "py39"
exclude = [
"hera_qm/scripts/test_xrfi_performance.py",
]
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C",
"E",
"F",
"FA",
"I002",
"ICN002",
"ICN003",
"N8", # invalid variable names
"N999", # invalid module name
"NPY", # numpy-specific checks
"PERF", # performance
"PIE", # flake8-pie
"RUF", # ruf-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"E501",
"B018", # useless epression
"B006", # mutable argument default !!!!
"N813", # camelcase imported as lowercase
"N801", # use CamelCase for class names
"N802", # invalid function name
"N803", # invalid argument name
"N806", # non-lowercase variable in function
"PERF401", # manual list comprehension
"A001", # variable shadowing builtin
"E702", # multiple statements on one line with semicolon
"E731", # lambda assignment
"E722", # bare except
"SIM105", # suppressable exception
"RUF005", # collection literal concatenation
"PERF203", # try-except in loop
"B904", # raise witout from inside except
"E721", # type-comparison
"B028", # no explicit stack-level
"ARG001", # unused function argument
"F841", # unused variable
"UP032", # use fstrings
"C901", # complex structure
"RUF012", # use ClassVar
"SIM108", # use ternary if then else
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"