Skip to content

Commit

Permalink
refactor tests (#285)
Browse files Browse the repository at this point in the history
* add basic ruff linting/formatting

* make tests use common fixtures

* clean up tests

* ignore preprocessing from coverage
  • Loading branch information
rpreen authored Jun 10, 2024
1 parent af9b6ef commit d22383c
Show file tree
Hide file tree
Showing 24 changed files with 826 additions and 1,197 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
ignore:
- "setup.py"
- "aisdc/safemodel/classifiers/new_model_template.py"
- "aisdc/preprocessing"
...
25 changes: 14 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ target-version = "py39"

lint.select = [
# "ANN", # flake8-annotations
# "ARG", # flake8-unused-arguments
"ARG", # flake8-unused-arguments
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "C90", # mccabe
Expand All @@ -48,26 +48,29 @@ lint.select = [
# "EM", # flake8-errmsg
# "ERA", # eradicate
# "F", # Pyflakes
# "I", # isort
# "ICN", # flake8-import-conventions
"I", # isort
"ICN", # flake8-import-conventions
# "N", # pep8-naming
# "PD", # pandas-vet
# "PGH", # pygrep-hooks
"PGH", # pygrep-hooks
# "PIE", # flake8-pie
# "PL", # Pylint
# "PLC", # Pylint
# "PLE", # Pylint
"PLC", # Pylint
"PLE", # Pylint
# "PLR", # Pylint
# "PLW", # Pylint
# "PT", # flake8-pytest-style
# "Q", # flake8-quotes
"PT", # flake8-pytest-style
"Q", # flake8-quotes
# "RET", # flake8-return
# "RUF100", # Ruff-specific
"RUF100", # Ruff-specific
# "S", # flake8-bandit
# "SIM", # flake8-simplify
# "T20", # flake8-print
# "TID", # flake8-tidy-imports
# "UP", # pyupgrade
# "W", # pycodestyle
# "YTT", # flake8-2020
"W", # pycodestyle
"YTT", # flake8-2020
]

[tool.ruff.per-file-ignores]
"tests/**/*" = ["S101"]
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d22383c

Please sign in to comment.