Skip to content

Commit

Permalink
Switch to Ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Aug 9, 2024
1 parent 296e788 commit 4087494
Showing 1 changed file with 10 additions and 40 deletions.
50 changes: 10 additions & 40 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ dependencies = [
[project.optional-dependencies]

linters = [
'codespell',
'black',
'coverage',
'flake8',
'interrogate',
'isort'
'ruff',
'codespell'
]

docs = [
Expand All @@ -44,42 +40,16 @@ where = ["src/DataSchemas"]
version = {attr = "aind_behavior_force_foraging.__version__"}
readme = {file = ["README.md"]}

[tool.black]
[tool.ruff]
line-length = 120
target_version = ['py311']
exclude = '''
target-version = 'py311'

(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
| .gitignore
)
'''

[tool.coverage.run]
omit = ["*__init__*"]
source = ["aind_behavior_force_foraging", "tests"]

[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:", "pragma: no cover"]
fail_under = 100

[tool.isort]
profile = "black"

[tool.interrogate]
exclude = ["setup.py", "docs", "build"]
fail-under = 100
[tool.ruff.lint]
extend-select = ['Q', 'RUF100', 'C90', 'I']
extend-ignore = []
mccabe = { max-complexity = 14 }
pydocstyle = { convention = 'google' }

[tool.codespell]
skip = '.git,*.pdf,*.svg'
skip = '.git,*.pdf,*.svg,./bonsai,*.bonsai,./docs/_build'
ignore-words-list = 'nd'

0 comments on commit 4087494

Please sign in to comment.