-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathruff.toml
52 lines (46 loc) · 1.67 KB
/
ruff.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
extend = "ruff-base.toml"
# TODO : fix these and stop ignoring
lint.extend-ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"PLR0915", # Too many statements
"PLR0912", # Too many branches
"C408", # Unnecessary `dict` call (rewrite as a literal)
]
extend-exclude = [
"docs",
"utils",
# Older notebooks in git repo
"kadi_demo.ipynb",
"validate/compare-commands-acis-cti.ipynb",
"validate/compare-commands-v1-v2.ipynb",
"validate/play-obs-stop-issue.ipynb",
"validate/pr304-func-test.ipynb",
"validate/pr305-func-test.ipynb",
"validate/validate-cmd-interrupt-refactor.ipynb",
"validate/validate-cmds-v7.0.ipynb",
"validate/validate-get-starcats.ipynb",
"validate/gratings/plot_grating.py",
"validate/performance_states.py",
"validate/pr319/run_updates.py",
"validate/gratings/compare_grating_moves.py",
# Notebooks in @taldcroft's git directory but not versioned
"notebooks/commands-archive-v2.0-play.ipynb",
"notebooks/commands-v2-test.ipynb",
"notebooks/compare-agasc-kadi-starcats.ipynb",
"notebooks/hrc-states-play.ipynb",
"notebooks/play-spm-eclipse-trouble.ipynb",
"notebooks/play-spm-fix.ipynb",
"notebooks/profile-command-states.ipynb",
"notebooks/sun-position-errors.ipynb",
"notebooks/validate-states-play.ipynb",
]
[lint.pycodestyle]
max-line-length = 100 # E501 reports lines that exceed the length of 100.
[lint.extend-per-file-ignores]
"__init__.py" = ["E402", "F401", "F403"]
"command_sets.py" = ["ARG001"]
"**/tests/**" = ["D", "E501"]
"states.py" = ["N801", "ARG003"]
"**/*.ipynb" = ["B018"]
"manual_test_cmds.py" = ["S101"] # assert OK
"kadi/events/*.py" = ["D205"] # Docstring starts with a single line