Skip to content

Commit

Permalink
Add docstring checks to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Jan 7, 2025
1 parent a955368 commit f092c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fia_auth/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


def is_instrument_scientist(user_number: int) -> bool:
"""
Checks if the user number is an instrument scientist according to UOWs (User Office Web Service)
"""Check if the user number is an instrument scientist according to UOWs (User Office Web Service).
:param user_number: The user number assigned to each user from UOWs
:return: True if the user number is an instrument scientist, false if not or failed connection.
"""
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ select = [
"F", # flake8 - Basic initial rules
"E", # pycodestyle (Error) - pep8 compliance
"W", # pycodestyle (Warning) - pep8 compliance
"D", # pydocstyle - Enforce docstrings present
"C90", # mccabe - flags extremely complex functions
"I", # isort - Sort imports and flag missing imports
"N", # pep8-naming - Ensures pep8 compliance for naming
Expand Down

0 comments on commit f092c1f

Please sign in to comment.