Skip to content

Commit

Permalink
adapt sagemaker-notebook to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLuttenberger committed Feb 29, 2024
1 parent 6d326fd commit b947e78
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 63 deletions.
3 changes: 0 additions & 3 deletions modules/sagemaker/sagemaker-notebook/coverage.ini

This file was deleted.

64 changes: 35 additions & 29 deletions modules/sagemaker/sagemaker-notebook/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
[tool.black]
[tool.ruff]
exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".ruff_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
"codeseeder",
]
line-length = 120
target-version = ["py36", "py37", "py38"]
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.env
| _build
| buck-out
| build
| dist
| codeseeder.out
)/
'''
target-version = "py38"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
py_version = 36
skip_gitignore = false
[tool.ruff.lint]
select = ["F", "I", "E", "W"]
fixable = ["ALL"]

[tool.mypy]
python_version = "3.8"
strict = true
ignore_missing_imports = true
disallow_untyped_decorators = false
exclude = "codeseeder.out/|example/|tests/|.venv"
warn_unused_ignores = false

[tool.pytest.ini_options]
addopts = "-v --cov=. --cov-report term --cov-config=coverage.ini --cov-fail-under=80"
addopts = "-v --cov=. --cov-report term"
pythonpath = [
"."
]
]

[tool.coverage.run]
omit = ["tests/*"]

[tool.coverage.report]
fail_under = 80
28 changes: 0 additions & 28 deletions modules/sagemaker/sagemaker-notebook/setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions modules/sagemaker/sagemaker-studio/coverage.ini

This file was deleted.

0 comments on commit b947e78

Please sign in to comment.