Skip to content

Commit

Permalink
Merge pull request #245 from galaxyproject/prepare_release_v0.11.0
Browse files Browse the repository at this point in the history
Prepare release v0.11.0
  • Loading branch information
davelopez authored Aug 30, 2023
2 parents 5724a88 + 2817530 commit de74190
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This project has the following main goals:
- [Run planemo tests in the Test Explorer](#run-planemo-tests-in-the-test-explorer)
- [Improved macros support](#improved-macros-support)
- [Extract macro](#extract-macro)
- [Full Galaxy tool linter integration](#document-validation) _New feature!_
- [Full Galaxy tool linter integration](#document-validation)

# Getting Started

Expand Down
12 changes: 12 additions & 0 deletions client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Galaxy Tools (VS Code Extension) Changelog

## [0.11.0] - 2023-08-30

### Added

- Add a few more snippets ([#233](https://github.com/galaxyproject/galaxy-language-server/pull/233)).

### Changed

- Auto-save document before inserting generated snippet ([#242](https://github.com/galaxyproject/galaxy-language-server/pull/242)).
- Relax GLS version checking ([#244](https://github.com/galaxyproject/galaxy-language-server/pull/244)).
- Updated Galaxy Language Server [v0.11.0](./server/CHANGELOG.md#0110)

## [0.10.2] - 2023-03-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "davelopez",
"publisher": "davelopez",
"license": "Apache-2.0",
"version": "0.10.2",
"version": "0.11.0",
"preview": true,
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion client/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export namespace Constants {
export const LS_VENV_NAME = "glsenv";
export const GALAXY_LS_PACKAGE = "galaxy-language-server";
export const GALAXY_LS = "galaxyls";
export const GALAXY_LS_VERSION = "0.10.2";
export const GALAXY_LS_VERSION = "0.11.0";
export const LANGUAGE_ID = "galaxytool";
export const TOOL_DOCUMENT_EXTENSION = "xml";

Expand Down
15 changes: 15 additions & 0 deletions server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Galaxy Language Server Changelog

## [0.11.0] - 2023-08-30

### Fixed

- Fix macros detection condition ([#239](https://github.com/galaxyproject/galaxy-language-server/pull/239)).

### Added

- Support for links to navigate to test-data files ([#231](https://github.com/galaxyproject/galaxy-language-server/pull/231)).

### Changed

- Improve attribute with enum auto-completion ([#241](https://github.com/galaxyproject/galaxy-language-server/pull/241)).
- Remove dead link ([#238](https://github.com/galaxyproject/galaxy-language-server/pull/238)).

## [0.10.2] - 2023-03-12

### Fixed
Expand Down
16 changes: 8 additions & 8 deletions server/galaxyls/services/tools/linting.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from typing import List
from typing import (
cast,
List,
)

from galaxy.tool_util.lint import (
lint_xml_with,
LintContext,
LintLevel,
LintMessage,
XMLLintMessageXPath,
)
from lsprotocol.types import (
Expand All @@ -19,7 +23,7 @@ class GalaxyToolLinter(ToolLinter):
diagnostics_source = "Galaxy Tool Linter"

def lint_document(self, xml_document: XmlDocument) -> List[Diagnostic]:
""" """
"""Lint the given document using the Galaxy linter modules and return a list of Diagnostics."""
result: List[Diagnostic] = []
xml_tree = xml_document.xml_tree_expanded
if not xml_document.is_tool_file or xml_tree is None:
Expand All @@ -40,12 +44,8 @@ def lint_document(self, xml_document: XmlDocument) -> List[Diagnostic]:
)
return result

def _to_diagnostic(
self,
lint_message: XMLLintMessageXPath,
xml_document: XmlDocument,
level: DiagnosticSeverity,
) -> Diagnostic:
def _to_diagnostic(self, lint_message: LintMessage, xml_document: XmlDocument, level: DiagnosticSeverity) -> Diagnostic:
lint_message = cast(XMLLintMessageXPath, lint_message)
range = xml_document.get_element_range_from_xpath_or_default(lint_message.xpath)
result = Diagnostic(
range=range,
Expand Down
2 changes: 1 addition & 1 deletion server/galaxyls/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GLS_VERSION = "0.10.2"
GLS_VERSION = "0.11.0"
2 changes: 1 addition & 1 deletion server/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# But imports the runtime ones too
-r requirements.txt

black==23.1.0
black==22.12.0
flake8-bugbear==23.2.13
flake8==6.0.0
isort==5.12.0
Expand Down
8 changes: 4 additions & 4 deletions server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pygls==1.0.1
lxml==4.9.2
anytree==2.8.0
galaxy-tool-util==22.1.5
pygls==1.0.2
lxml==4.9.3
anytree==2.9.0
galaxy-tool-util==23.0.5

0 comments on commit de74190

Please sign in to comment.