Skip to content

Commit

Permalink
add additional ignores and fix some pre-commit errors manually
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Nov 18, 2024
1 parent 7a199e3 commit b34af28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aiida_restapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__version__ = '0.1.0a1'

from .main import app
from .main import app # noqa: F401
3 changes: 2 additions & 1 deletion aiida_restapi/graphql/orm_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,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
Expand Down

0 comments on commit b34af28

Please sign in to comment.