mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:10 +00:00

## Summary Add copyright notice detection to enforce the presence of copyright headers in Python files. Configurable settings include: the relevant regular expression, the author name, and the minimum file size, similar to [flake8-copyright](https://github.com/savoirfairelinux/flake8-copyright). Closes https://github.com/charliermarsh/ruff/issues/3579 --------- Signed-off-by: ryan <ryang@waabi.ai> Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
25 lines
439 B
TOML
25 lines
439 B
TOML
[project]
|
|
name = "scripts"
|
|
version = "0.0.1"
|
|
dependencies = ["sphinx"]
|
|
requires-python = ">=3.9"
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
|
|
[tool.ruff]
|
|
line-length = 88
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"C901", # McCabe complexity
|
|
"D", # pydocstyle
|
|
"PL", # pylint
|
|
"S", # bandit
|
|
"CPY", # copyright
|
|
"G", # flake8-logging
|
|
"T", # flake8-print
|
|
"FBT", # flake8-boolean-trap
|
|
]
|
|
|
|
[tool.ruff.pydocstyle]
|
|
convention = "pep257"
|