Skip to content

Commit

Permalink
Update pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni authored Jul 17, 2024
1 parent 740f349 commit 46ff8ff
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,20 @@ exclude = [
"tasks.py",
]

[tool.ruff]
preview = true
line-length = 100
indent-width = 4
src = ["ctgan"]
exclude = [
"docs",
".tox",
".git",
"__pycache__",
".ipynb_checkpoints",
"tasks.py",
]

[tool.ruff.lint]
select = [
# Pyflakes
Expand All @@ -182,11 +196,9 @@ select = [
"PD"
]
ignore = [
"E501",
# pydocstyle
"D107", # Missing docstring in __init__
"D417", # Missing argument descriptions in the docstring, this is a bug from pydocstyle: https://github.com/PyCQA/pydocstyle/issues/449
# pandas-vet
"PD901",
"PD101",
]
Expand All @@ -204,8 +216,12 @@ lines-between-types = 0

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "F403", "F405", "E501", "I001"]
# Ignore pydocstyle in `tests/**.py` directory.
"errors.py" = ["D105"]
"tests/**.py" = ["D"]

[tool.ruff.lint.pydocstyle]
convention = "google"
convention = "google"

[tool.ruff.lint.pycodestyle]
max-doc-length = 100
max-line-length = 100

0 comments on commit 46ff8ff

Please sign in to comment.