Skip to content

Commit

Permalink
Added ruff linting tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Surbhi Goel committed Feb 26, 2024
1 parent ea40ba7 commit 14c5519
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,19 @@ where = ["."] # list of folders that contain the packages (["."] by default)
include = ["newCAM_emulation*"] # package names should match these glob patterns (["*"] by default)
exclude = ["Demodata/*"] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.ruff]
# Run linting and formatting on notebooks
extend-include = ["*.ipynb"]

[tool.ruff.lint]
# Enable: D: `pydocstyle`, PL: `pylint`, I: `isort`, W: `pycodestyle whitespace`
# NPY: `numpy`,
select = ["D", "PL", "I", "E", "W", "NPY"]

# Enable D417 (Missing argument description) on top of the NumPy convention.
extend-select = ["D417"]

[tool.ruff.lint.pydocstyle]
# Use NumPy convention for checking docstrings
convention = "numpy"

0 comments on commit 14c5519

Please sign in to comment.