Skip to content

Commit

Permalink
remove unnecessary and invalid flake8 ignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Feb 5, 2023
1 parent 6f16a8b commit 1fabad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def on_workspace_configuration(self, params: Any, configuration: Dict) -> Dict:
self.resolve_working_directory(configuration, scope_uri, workspace_folder)
buf = session.get_session_buffer_for_uri_async(scope_uri)
if buf:
configuration['validate'] = self.compute_validate(buf.language_id, scope_uri, configuration)
configuration['validate'] = self.compute_validate(
buf.get_language_id() or '', scope_uri, configuration)
else:
configuration['validate'] = 'on'
del configuration['probe']
Expand Down
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,4 @@ skipsdist = True
max-line-length = 120

[flake8]
ignore =
F841 # local variable is assigned to but never used
E252 # missing whitespace around parameter equals
W504 # line break after binary operator
F821 # undefined name
max-line-length = 120

0 comments on commit 1fabad4

Please sign in to comment.