-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathruff.toml
More file actions
47 lines (40 loc) · 1.36 KB
/
ruff.toml
File metadata and controls
47 lines (40 loc) · 1.36 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
# SPDX-FileCopyrightText: Copyright 2024 Siemens AG
#
# SPDX-License-Identifier: Apache-2.0
src = ["resources"]
exclude = ["venv*", "unit_tests", "config", "tests", "doc", "pq_logic/fips/*",
"scripts/docstring-check.py", "scripts/add_license.py", "scripts/write_stats.py",
"liboqs-python-stateful-sig", "liboqs-python"]
# pq_logic/fips/* is excluded because we use it "as is" from the original repo,
# https://github.com/mjosaarinen/py-acvp-pqc, and we keep it that way
line-length = 120
respect-gitignore = true
[lint]
ignore = ["D415", "D400", "D213", "D212", "D203"]
#typing-modules = [""]
select = [
"F", # pyflakes
"E", "W", # Pycodestyle
"I", # isort
"D", # docstring checker
"T", # temporary rules.
# As an example, show `print` statements in the code.
]
[lint.per-file-ignores]
"scripts/**/*.py" = ["T"]
"mock_ca/client.py" = ["T"]
[lint.isort]
known-first-party = ["pq_logic", "resources", "unit_tests"]
[format]
docstring-code-format = true
exclude = ["D213", "D212", "D211", "D200"]
indent-style = "space"
#skip-magic-trailing-comma = true
# D200 fits-on-one-line
# D211 no-blank-line-before-class
# D212 multi-line-summary-first-line
# D213 multi-line-summary-second-line
# D400 First line should end with a period
# D415 ends-in-punctuation
# because of RF # fixable with # noqa: D417 on the function.
# spaces and D203, 211 are incompatible.