forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
34 lines (32 loc) · 1.02 KB
/
pyproject.toml
File metadata and controls
34 lines (32 loc) · 1.02 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
[tool.black]
target-version = ['py310', 'py311', 'py312', 'py313']
required-version = '25.1.0'
include = '''
(
^\/python\/moosecontrol\/.*.py$ |
^\/python\/moosepy\/.*.py$ |
^\/python\/TestHarness\/resultsstore\/.*.py$ |
^\/python\/TestHarness\/resultssummary\/.*.py$ |
^\/python\/TestHarness/tests/resultsstore\/.*.py$ |
^\/python\/TestHarness/tests/resultssummary\/.*.py$
)
'''
[tool.ruff]
include = [
"python/moosecontrol/**/*.py",
"python/moosepy/**/*.py",
"python/TestHarness/resultsstore/**/*.py",
"python/TestHarness/resultssummary/**/*.py",
"python/TestHarness/tests/resultsstore/**/*.py",
"python/TestHarness/tests/resultssummary/**/*.py"
]
exclude = ["python/moosecontrol/requests_unixsocket/*.py"]
[tool.ruff.lint]
# Enable pycodestyle (E) and Pyflakes (F) codes by default.
# D - NumPy docstring rules
# I - Sorting imports
# N801 - Class name should use CapWords convention
# SIM - code simplification rules
# TID - tidy imports
select = ["D", "E", "F", "I", "N801", "SIM", "TID"]
ignore = ["D203", "D212"]