diff --git a/aiida_restapi/__init__.py b/aiida_restapi/__init__.py index 3471d12..d3618b6 100644 --- a/aiida_restapi/__init__.py +++ b/aiida_restapi/__init__.py @@ -2,4 +2,4 @@ __version__ = '0.1.0a1' -from .main import app +from .main import app # noqa: F401 diff --git a/aiida_restapi/graphql/orm_factories.py b/aiida_restapi/graphql/orm_factories.py index 1a72c91..b4de3d6 100644 --- a/aiida_restapi/graphql/orm_factories.py +++ b/aiida_restapi/graphql/orm_factories.py @@ -107,7 +107,8 @@ def create_query_path(query: orm.QueryBuilder, parent: Dict[str, Any]) -> Dict[s def multirow_cls_factory(entity_cls: Type[gr.ObjectType], orm_cls: Type[orm.Entity], name: str) -> Type[gr.ObjectType]: - """Create a graphene class with standard fields/resolvers for querying multiple rows of the same AiiDA ORM entity.""" + """Create a graphene class with standard fields/resolvers for querying multiple rows of the same AiiDA ORM + entity.""" db_fields = field_names_from_orm(orm_cls) diff --git a/pyproject.toml b/pyproject.toml index 8ba9850..49e6828 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,7 +126,11 @@ ignore = [ 'PLR0915', # Too many statements 'PLR2004', # Magic value used in comparison 'RUF005', # Consider iterable unpacking instead of concatenation - 'RUF012' # Mutable class attributes should be annotated with `typing.ClassVar` + 'RUF012', # Mutable class attributes should be annotated with `typing.ClassVar` + 'N801', # Checks for class names that do not follow the CamelCase convention. + 'N802', # Checks for functions names that do not follow the snake_case naming convention + 'N803', # Checks for argument names that do not follow the snake_case convention. + 'N816' # Checks for global variable names that follow the mixedCase convention. ] select = [ 'E', # pydocstyle