-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (47 loc) · 1.52 KB
/
pyproject.toml
File metadata and controls
53 lines (47 loc) · 1.52 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["cognitive_dissonance"]
skip_gitignore = true
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"SIM",# flake8-simplify
"PTH",# flake8-use-pathlib
"RUF",# Ruff-specific rules
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D406", # Section name should end with a colon
"D407", # Missing dashed underline after section header
"D413", # Missing blank line after last section
]
unfixable = ["B"] # Don't auto-fix flake8-bugbear issues
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"formal_verification/z3_prover.py" = ["F403", "F405"] # Z3 exposes solver symbols via a star import
[tool.ruff.lint.pydocstyle]
convention = "google" # Use Google style docstrings