Skip to content

Commit 238c5c2

Browse files
committed
feat(offline): try exclude libdev from precommit
1 parent e3b1b0a commit 238c5c2

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.drone.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ steps:
167167

168168
- name: check code complexity, docs & code quality pre-commit
169169
image: python:3.9
170-
when:
171-
status:
172-
- success
173-
- failure
174-
ignore: failure
175170
commands:
176171
- pip install pylint==2.16.2 pre-commit
177172
- python code_pylint.py

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
66
rev: v3.2.0
7+
exclude: libdev/
78
hooks:
89
- id: trailing-whitespace
910
- id: check-docstring-first

plot_data/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ def _to_html(self, local: bool = False, canvas_id: str = 'canvas', version: str
134134

135135
def to_html_stream(self, stream, local: bool = False, canvas_id: str = 'canvas', version: str = None):
136136
""" Export current Figure to its equivalent html stream file. """
137-
html = self._to_html(debug_mode=debug_mode, canvas_id=canvas_id, version=version)
137+
html = self._to_html(local=local, canvas_id=canvas_id, version=version)
138138
stream.write(html)
139139

140140
def to_html(self, filepath: str = None, local: bool = False, canvas_id: str = 'canvas', version: str = None):
141141
""" Export current Figure to an HTML file given by the filepath. """
142142
filepath = make_filepath(filepath=filepath)
143143
with open(filepath, 'w', encoding="utf-8") as file:
144-
self.to_html_stream(file, debug_mode=debug_mode, canvas_id=canvas_id, version=version)
144+
self.to_html_stream(file, local=local, canvas_id=canvas_id, version=version)
145145
return filepath
146146

147147
def plot_data(self, **kwargs):

0 commit comments

Comments
 (0)