Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
richardebeling committed Oct 9, 2023
1 parent d2c9476 commit 2983427
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions evap/staff/importers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
from .enrollment import import_enrollments
from .person import import_persons_from_evaluation, import_persons_from_file
from .user import import_users

__all__ = [
"ImporterLog",
"ImporterLogEntry",
"import_enrollments",
"import_persons_from_evaluation",
"import_persons_from_file",
"import_users",
]
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ extend_skip_glob = ["**/migrations/*"]
##############################################

[tool.ruff]
# We'd like to enable N806, but we'd need to allow some special cases that we currently can't:
# * migrations have model classes as local variables, we use PascalCase for these
# * custom assert methods use camelCase
# * Formsets use PascalCase

select = ["F", "E", "B", "W", "N", "UP", "YTT"]
ignore = [
"E501", # line-too-long: black does code formatting for us
"N806",
]

pep8-naming.extend-ignore-names = ["assert*", "*Formset"]


##############################################

Expand Down

0 comments on commit 2983427

Please sign in to comment.