ruff/scripts/pyproject.toml
Ryan Yang ab3c02342b
Implement copyright notice detection (#4701)
## 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>
2023-06-11 02:17:58 +00:00

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"