Skip to content

Linting errors in CI (again) #743

@leehart

Description

@leehart

It looks like the linting errors for Bokeh have returned. Perhaps they are still present in a new version ( https://github.com/bokeh/bokeh/releases/tag/3.7.1 ), so we might have to pin Bokeh down to 3.6.

Run mypy malariagen_data tests --ignore-missing-imports
  mypy malariagen_data tests --ignore-missing-imports
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.9/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.9/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.9/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.9/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.9/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.9/x64/lib
malariagen_data/anoph/genome_features.py:207: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/genome_features.py:221: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:221: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:221: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:221: error: Unexpected keyword argument "tooltips" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:222: error: Argument "title" to "figure" has incompatible type "str | Literal[False]"; expected "Title | str | None"  [arg-type]
malariagen_data/anoph/genome_features.py:310: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/genome_features.py:356: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/genome_features.py:375: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:375: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:375: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:375: error: Unexpected keyword argument "tooltips" for "figure"  [call-arg]
malariagen_data/anoph/genome_features.py:376: error: Argument "title" to "figure" has incompatible type "str | bool | None"; expected "Title | str | None"  [arg-type]
malariagen_data/anoph/genome_features.py:401: error: "Sequence[Model]" has no attribute "callback"  [attr-defined]
malariagen_data/anoph/genome_features.py:510: error: "list[Grid]" has no attribute "visible"  [attr-defined]
malariagen_data/anoph/genome_features.py:513: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/genome_features.py:514: error: "list[Axis]" has no attribute "major_label_overrides"  [attr-defined]
malariagen_data/anoph/genome_features.py:515: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anoph/snp_data.py:1503: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/snp_data.py:1518: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/snp_data.py:1518: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/snp_data.py:1518: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/snp_data.py:1518: error: Unexpected keyword argument "tooltips" for "figure"  [call-arg]
malariagen_data/anoph/snp_data.py:1528: error: Argument "y_range" to "figure" has incompatible type "tuple[float, float]"; expected "Range"  [arg-type]
malariagen_data/anoph/snp_data.py:1533: error: "Sequence[Model]" has no attribute "name"  [attr-defined]
malariagen_data/anoph/snp_data.py:1571: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/snp_data.py:1574: error: "list[Axis]" has no attribute "major_label_overrides"  [attr-defined]
malariagen_data/anoph/snp_data.py:1578: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anoph/snp_data.py:1579: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/snp_data.py:1580: error: "list[Axis]" has no attribute "minor_tick_line_color"  [attr-defined]
malariagen_data/anoph/cnv_data.py:711: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/cnv_data.py:715: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/cnv_data.py:715: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/cnv_data.py:715: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/cnv_data.py:725: error: Argument "y_range" to "figure" has incompatible type "tuple[int, Any]"; expected "Range"  [arg-type]
malariagen_data/anoph/h12.py:804: error: "Model" has no attribute "x_range"  [attr-defined]
malariagen_data/anoph/h12.py:816: error: "Model" has no attribute "x_range"  [attr-defined]
malariagen_data/anoph/g123.py:359: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/g123.py:367: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/g123.py:367: error: Unexpected keyword argument "active_inspect" for "figure"  [call-arg]
malariagen_data/anoph/g123.py:367: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/g123.py:367: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/g123.py:368: error: Argument "title" to "figure" has incompatible type "str | bool | None"; expected "Title | str | None"  [arg-type]
malariagen_data/anoph/g123.py:386: error: Argument "y_range" to "figure" has incompatible type "tuple[int, int]"; expected "Range"  [arg-type]
malariagen_data/anoph/g123.py:402: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anoph/g123.py:403: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/g123.py:556: error: Unexpected keyword argument "x_axis_type" for "figure"  [call-arg]
malariagen_data/anoph/g123.py:557: error: Argument "title" to "figure" has incompatible type "str | bool | None"; expected "Title | str | None"  [arg-type]
malariagen_data/anoph/g123.py:590: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anoph/fst.py:211: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anoph/fst.py:219: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anoph/fst.py:219: error: Unexpected keyword argument "active_inspect" for "figure"  [call-arg]
malariagen_data/anoph/fst.py:219: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anoph/fst.py:219: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anoph/fst.py:220: error: Argument "title" to "figure" has incompatible type "str | bool"; expected "Title | str | None"  [arg-type]
malariagen_data/anoph/fst.py:238: error: Argument "y_range" to "figure" has incompatible type "tuple[int, int]"; expected "Range"  [arg-type]
malariagen_data/anoph/fst.py:254: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anoph/fst.py:255: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anopheles.py:294: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anopheles.py:300: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anopheles.py:300: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anopheles.py:300: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anopheles.py:310: error: Argument "y_range" to "figure" has incompatible type "tuple[int, Any]"; expected "Range"  [arg-type]
malariagen_data/anopheles.py:328: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anopheles.py:633: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anopheles.py:646: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anopheles.py:646: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anopheles.py:646: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anopheles.py:647: error: Argument "title" to "figure" has incompatible type "str | bool | None"; expected "Title | str | None"  [arg-type]
malariagen_data/anopheles.py:680: error: "list[Grid]" has no attribute "visible"  [attr-defined]
malariagen_data/anopheles.py:681: error: "list[Axis]" has no attribute "ticker"  [attr-defined]
malariagen_data/anopheles.py:682: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anopheles.py:1517: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anopheles.py:1525: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anopheles.py:1525: error: Unexpected keyword argument "active_inspect" for "figure"  [call-arg]
malariagen_data/anopheles.py:1525: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anopheles.py:1525: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anopheles.py:1526: error: Argument "title" to "figure" has incompatible type "str | bool | None"; expected "Title | str | None"  [arg-type]
malariagen_data/anopheles.py:1571: error: Unexpected keyword argument "size" for "circle" of "GlyphAPI"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/plotting/glyph_api.pyi:547: note: "circle" of "GlyphAPI" defined here
malariagen_data/anopheles.py:1581: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
malariagen_data/anopheles.py:2047: error: Unexpected keyword argument "bounds" for "Range1d"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/models/ranges.pyi:53: note: "Range1d" defined here
malariagen_data/anopheles.py:2058: error: Unexpected keyword argument "tools" for "figure"  [call-arg]
malariagen_data/anopheles.py:2058: error: Unexpected keyword argument "active_inspect" for "figure"  [call-arg]
malariagen_data/anopheles.py:2058: error: Unexpected keyword argument "active_scroll" for "figure"  [call-arg]
malariagen_data/anopheles.py:2058: error: Unexpected keyword argument "active_drag" for "figure"  [call-arg]
malariagen_data/anopheles.py:2059: error: Argument "title" to "figure" has incompatible type "str | bool"; expected "Title | str | None"  [arg-type]
malariagen_data/anopheles.py:2103: error: Unexpected keyword argument "size" for "circle" of "GlyphAPI"  [call-arg]
/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/bokeh/plotting/glyph_api.pyi:547: note: "circle" of "GlyphAPI" defined here
malariagen_data/anopheles.py:2113: error: "list[Axis]" has no attribute "axis_label"  [attr-defined]
Found 133 errors in 8 files (checked 94 source files)
Error: Process completed with exit code 1.

Re: previous issue #734

Looks like this issue persisted in Bokeh 3.7.1 bokeh/bokeh#14412 and is now scheduled for version 3.8

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions