forked from NHERI-SimCenter/SimCenterBackendApplications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
56 lines (49 loc) · 2.3 KB
/
pyproject.toml
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
54
55
56
[tool.ruff]
line-length = 85
# There was a conversation last week about whether ruff is safe enough to use for auto-fixing files, waiting for a decision on that.
# I would lint-format them myself, but I don't want to risk breaking other people's code.
# Workflow/whale/main.py in particular should be re-included as quickly as possible.
#
# Quick fix: Repeat the following 3-4 times per directory until ruff is happy:
# $ ruff check --no-cache --fix ; ruff check --no-cache --add-noqa ; ruff format --no-cache
#
# - JustinBonus, 2025-01-20
extend-exclude = ["modules/createEVENT/TaichiEvent",
"modules/performREC/pyrecodes",
"modules/performRegionalEventSimulation/regionalGroundMotion",
"modules/performSIMULATION/capacitySpectrum",
"modules/Workflow/whale/main.py",
"modules/createAIM/INP_FILE/INP_FILE.py",
"modules/createEVENT/IsolatedBuildingCFD/setup_case.py",
"modules/createEVENT/shakeMapEvent/shakeMapEvent.py",
"modules/performREC/transportation.py",
"modules/systemPerformance/REWET/REWET_Wrapper.py",
"modules/systemPerformance/ResidualDemand/run_residual_demand.py",
"modules/systemPerformance/ResidualDemand/transportation.py",
"modules/tools/BRAILS/runBrailsTransp.py",
"modules/performUQ/SimCenterUQ/UQengine.py",
"modules/performUQ/UCSD_UQ/runTMCMC.py",
"modules/performUQ/common/uq_utilities.py",
"modules/performUQ/dakota/DakotaUQ.py"
]
[tool.ruff.lint]
# Enable all known categories
select = ["ALL"]
ignore = ["ANN", "D211", "D212", "Q000", "Q003", "COM812", "D203", "ISC001", "E501", "ERA001", "PGH003", "FIX002", "TD003", "S101", "N801", "S311", "G004", "SIM102", "SIM108", "NPY002", "F401"]
preview = false
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["ALL"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
max-args=15
max-locals=50
max-returns=11
max-branches=50
max-statements=150
max-bool-expr=5
[tool.ruff.format]
quote-style = "single"
[tool.codespell]
ignore-words = ["ignore_words.txt"]
skip = ["*.html", "NGAWest2.csv", "./applications/*", "./build/*"]