Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
pydocstyle
  • Loading branch information
Eitan Turok committed Aug 1, 2024
1 parent f670108 commit caae74d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ repos:
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=80, --wrap-descriptions=80]
- repo: https://github.com/PyCQA/pydocstyle
hooks:
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: python
types: [python]
exclude: (.ci|.github)
additional_dependencies:
- toml
rev: 6.1.1
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
Expand Down
39 changes: 27 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,43 @@ skip = [ "env", "wandb", "runs", "build", "node_modules" ]
include_trailing_comma = true
split_on_trailing_comma = true

# Ruff global
[tool.ruff]
exclude = [
"build/**",
"docs/**",
"node_modules/**",
]

# Ruff linter
[tool.ruff.lint]
select = [
"C4",
# TODO port pydocstyle
# "D", # pydocstyle
"LOG",
"PERF",
"PLE",
"COM812",
]
[tool.ruff]
exclude = [
"build/**",
"docs/**",
"node_modules/**",

extend-select = ["D404"] # pydocstyle

ignore = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D400",
"D401",
"D415",
]

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


# Coverage
[tool.coverage.run]
parallel = true
Expand Down Expand Up @@ -506,8 +526,3 @@ ignore_patterns = [
"wandb/**/*.py",
"build/**/*.py",
]

[tool.pydocstyle]
convention="google"
add_ignore="D100,D101,D102,D103,D104,D105,D107,D400,D401,D415"
add_select="D404"

0 comments on commit caae74d

Please sign in to comment.