diff --git a/.cruft.json b/.cruft.json index 63b3958..e69f393 100644 --- a/.cruft.json +++ b/.cruft.json @@ -11,7 +11,7 @@ "project_slug": "xdatasets", "project_short_description": "Easy access to Earth observation datasets with xarray.", "pypi_username": "sebastienlanglois", - "version": "0.3.4", + "version": "0.3.5", "use_pytest": "y", "use_black": "y", "use_conda": "y", diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 90e03f3..a49c957 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -14,23 +14,20 @@ on: - .editorconfig - .github/**.yml - .gitignore - - .gitlab-ci.yml - - .gitmodules + - .gitattributes + - .nojekyll - .pre-commit-config.yaml - .yamllint.yaml - AUTHORS.rst - CHANGES.rst - CONTRIBUTING.rst - - doc/notebooks - - doc/*.py - - doc/*.rst + - docs/notebooks/**.ipynb + - docs/*.py + - docs/*.rst - environment-dev.yml - - environment.yml + - environment-docs.yml - Makefile - - MANIFEST.in - pyproject.toml - - requirements_upstream.txt - - setup.py - tests/**.py - tox.ini - xdatasets/__init__.py diff --git a/CHANGES.rst b/CHANGES.rst index 0242f5d..780d5cd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,7 +2,7 @@ Changelog ========= -v0.3.5 (unreleased) +v0.3.5 (2024-02-19) ------------------- * The `cookiecutter` template has been updated to the latest commit via `cruft`. (:pull:`52`): diff --git a/environment-dev.yml b/environment-dev.yml index 7d768cf..c193da2 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -35,6 +35,7 @@ dependencies: - pre-commit >=3.3.2 - pytest >=7.3.1 - pytest-cov >=4.0.0 + - ruff >=0.2.0 - tokenize-rt >=3.2.0 - tox >=4.5.1 - watchdog >=3.0.0 diff --git a/pyproject.toml b/pyproject.toml index 00976fc..b95ef6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,7 @@ dev = [ "pylint", "pytest-cov>=4.0.0", "pytest>=7.3.1", + "ruff>=0.2.0", "tokenize-rt", "tox>=4.5.1", "watchdog>=3.0.0", @@ -122,8 +123,8 @@ extra = [ ] [project.urls] -"Homepage" = "https://hydrologie.github.io/xdatasets/" -"Changelog" = "https://xdatasets.readthedocs.io/en/stable/Changes.html" +"Homepage" = "https://xdatasets.readthedocs.io/" +"Changelog" = "https://xdatasets.readthedocs.io/en/stable/changes.html" "Source" = "https://github.com/hydrologie/xdatasets" "Issue tracker" = "https://github.com/hydrologie/xdatasets/issues" @@ -139,7 +140,7 @@ target-version = [ ] [tool.bumpversion] -current_version = "0.3.4" +current_version = "0.3.5" commit = true commit_args = "--no-verify" tag = false @@ -255,6 +256,11 @@ exclude = [ "docs", "tests" ] + +[tool.ruff.format] +line-ending = "auto" + +[tool.ruff.lint] ignore = [ "D100", # Missing docstring in public module "D101", # Missing docstring in public class @@ -274,27 +280,24 @@ select = [ "W" ] -[tool.ruff.flake8-bandit] +[tool.ruff.lint.flake8-bandit] check-typed-exception = true -[tool.ruff.format] -line-ending = "auto" - -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["xdatasets"] case-sensitive = true detect-same-package = false lines-after-imports = 1 no-lines-before = ["future", "standard-library"] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 15 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "xdatasets/**/__init__.py" = ["F401", "F403"] -[tool.ruff.pycodestyle] +[tool.ruff.lint.pycodestyle] max-doc-length = 180 -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" diff --git a/tests/test_xdatasets.py b/tests/test_xdatasets.py index 4a2ca7d..995880b 100644 --- a/tests/test_xdatasets.py +++ b/tests/test_xdatasets.py @@ -36,4 +36,4 @@ def test_package_metadata(): contents = f.read() assert """Sebastien Langlois""" in contents assert '__email__ = "sebastien.langlois62@gmail.com"' in contents - assert '__version__ = "0.3.4"' in contents + assert '__version__ = "0.3.5"' in contents diff --git a/xdatasets/__init__.py b/xdatasets/__init__.py index cd392f4..ceb631c 100644 --- a/xdatasets/__init__.py +++ b/xdatasets/__init__.py @@ -5,4 +5,4 @@ __author__ = """Sebastien Langlois""" __email__ = "sebastien.langlois62@gmail.com" -__version__ = "0.3.4" +__version__ = "0.3.5"