mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
Add documentation, pre-commit hook, more make commands and
This commit is contained in:
@@ -65,6 +65,7 @@ autopep8 = "^2.3.1"
|
||||
pytest-loguru = "^0.4.0"
|
||||
pytest-mock = "^3.14.0"
|
||||
ruff = "^0.9.10"
|
||||
pre-commit = "^4.1.0"
|
||||
|
||||
[tool.poetry.group.docs.dependencies]
|
||||
sphinx = "^8.1.3"
|
||||
@@ -96,23 +97,23 @@ markers = [
|
||||
#exclude = ["docs"]
|
||||
line-length = 120
|
||||
# Remove this for a more detailed lint report
|
||||
#output-format = "concise"
|
||||
output-format = "concise"
|
||||
|
||||
|
||||
[tool.ruff.lint]
|
||||
#add bugbear?
|
||||
# I : isort
|
||||
# UP : upgrade, e.g. use fstrings
|
||||
# ANN : annotations
|
||||
extend-select = ["B"]
|
||||
# Extend the rules to check for by adding them to this option:
|
||||
# See documentation for more details: https://docs.astral.sh/ruff/rules/
|
||||
#extend-select = ["B"]
|
||||
|
||||
# Ignore unused imports as some are currently required for lazy loading
|
||||
# This can be removed for a `lint check` run which is manually reviewed
|
||||
ignore = ["F401"]
|
||||
# This can be removed for a `ruff check` run which is manually reviewed
|
||||
#ignore = ["F401"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
# Ignore import violations in __init__.py files
|
||||
"__init__.py" = ["F401", "F403"]
|
||||
# Ignore 'useless expression' in manifest files.
|
||||
"__manifest__.py" = ["B018"]
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = false
|
||||
|
||||
Reference in New Issue
Block a user