Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devops: Update pre-commit requirement ruff==0.3.5 #29

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/validate_release_tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Validate that the version in the tag label matches the version of the package."""

import argparse
import ast
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: flynt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
rev: v0.3.5
hooks:
- id: ruff-format
- id: ruff
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,16 @@ markers = [
]

[tool.ruff]
line-length = 120

[tool.ruff.format]
quote-style = 'single'

[tool.ruff.lint]
ignore = [
'D203', # Incompatible with D211 `no-blank-line-before-class`
'D213' # Incompatible with D212 `multi-line-summary-second-line`
]
line-length = 120
select = [
'E', # pydocstyle
'W', # pydocstyle
Expand All @@ -117,6 +122,3 @@ select = [
'PLW', # pylint-warning
'RUF' # ruff
]

[tool.ruff.format]
quote-style = 'single'
1 change: 1 addition & 0 deletions src/aiida_s3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""AiiDA plugin that provides a storage backend using an S3 object store as the file repository."""

__version__ = '0.2.0'
1 change: 1 addition & 0 deletions src/aiida_s3/repository/aws_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of the :py:`aiida.repository.backend.abstract.AbstractRepositoryBackend` using AWS S3 as backend."""

from __future__ import annotations

import typing as t
Expand Down
1 change: 1 addition & 0 deletions src/aiida_s3/repository/azure_blob.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of the :py:`aiida.repository.backend.abstract.AbstractRepositoryBackend` using Azure Blob Storage."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions src/aiida_s3/repository/s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of the :py:`aiida.repository.backend.abstract.AbstractRepositoryBackend` using S3 as backend."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions src/aiida_s3/storage/psql_aws_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of :class:`aiida.orm.implementation.storage_backend.StorageBackend` using PostgreSQL + AWS S3."""

from __future__ import annotations

from aiida.storage.psql_dos import PsqlDosBackend
Expand Down
1 change: 1 addition & 0 deletions src/aiida_s3/storage/psql_azure_blob.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of :class:`aiida.orm.implementation.storage_backend.StorageBackend` using PostgreSQL + Azure."""

from __future__ import annotations

from aiida.storage.psql_dos.backend import PsqlDosBackend
Expand Down
1 change: 1 addition & 0 deletions src/aiida_s3/storage/psql_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of :class:`aiida.orm.implementation.storage_backend.StorageBackend` using PostgreSQL + S3."""

from __future__ import annotations

from aiida.storage.psql_dos.backend import PsqlDosBackend
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for ``verdi profile setup``."""

import pathlib

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Test fixtures for the :mod:`aiida_s3` module."""

from __future__ import annotations

import contextlib
Expand Down
2 changes: 1 addition & 1 deletion tests/repository/test_aws_s3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_s3.repository.aws_s3` module."""

import io
import typing as t
import uuid
Expand Down
2 changes: 1 addition & 1 deletion tests/repository/test_azure_blob.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_s3.repository.azure_blob` module."""

import io
import typing as t
import uuid
Expand Down
2 changes: 1 addition & 1 deletion tests/repository/test_s3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_s3.repository.s3` module."""

import io
import typing as t
import uuid
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/test_psql_aws_s3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_s3.storage.psql_aws_s3` module."""

import io

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/test_psql_azure_blob.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=redefined-outer-name
"""Tests for the :mod:`aiida_s3.storage.psql_azure_blob` module."""

import io

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the :mod:`tests.conftest` module."""

from botocore.client import BaseClient


Expand Down
1 change: 1 addition & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the :mod:`aiida_s3` module."""

import aiida_s3
from packaging.version import Version, parse

Expand Down
Loading