-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathruff.toml
More file actions
34 lines (30 loc) · 1.04 KB
/
Copy pathruff.toml
File metadata and controls
34 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# https://github.com/BesLogic/Beslogic-Ruff-Config
extend = ".venv/Beslogic-Ruff-Config/ruff.toml"
[lint]
explicit-preview-rules = false # This project uses bleeding-edge behaviours
ignore = [
"D205", # Not all docstrings have a short description + description
# We have some Pascal case module names
"N999", # pep8-naming: Invalid module name
# Print are used as debug logs
"T20", # flake8-print
# We use unittest, not pytest
"PT", # flake8-pytest-style
# This is a relatively small, low contributors project. Git blame suffice.
"TD002", # missing-todo-author
# We do work in __init__ modules
"RUF067", # non-empty-init-module
###
# TODO
###
"PTH", # flake8-use-pathlib
"RUF028", # invalid-formatter-suppression-comment, Is meant for the formatter, but false-positives
]
[lint.per-file-ignores]
"src/d3d11.py" = [
# Following windows API/ctypes like naming conventions
"N801", # invalid-class-name
]
[lint.isort]
# gen/ is fully generated and won't exist on CI so Ruff can't detect it as first-party
known-first-party = ["gen"]