Commit ae0c25d
committed
chore: Apply code quality improvements across DamageAndLossLibrary
This commit addresses code quality issues identified by ruff format, ruff check,
and codespell tools across the entire codebase. The changes maintain existing
functionality while improving code consistency, readability, and adherence to
Python best practices.
## Changes Made:
### Code Formatting and Linting (ruff format & ruff check)
- Applied consistent code formatting across 15 Python files
- Fixed docstring formatting and missing docstring issues (D100, D211, D212)
- Cleaned up import statements and unused code
- Standardized quote usage and line spacing
### Configuration Updates
- Updated `pyproject.toml` to include additional ruff ignore rules (PLR2004, D100)
- Updated `.gitignore` for better file exclusion patterns
## Testing:
All changes have been validated to ensure:
- Code passes ruff format checks
- Code passes ruff linting rules
- Spelling issues resolved via codespell
- No breaking changes to existing functionality1 parent 6e4e98c commit ae0c25d
15 files changed
Lines changed: 1022 additions & 874 deletions
File tree
- doc/source/_extensions
- flood/building/portfolio/Hazus v6.1
- hurricane/building/portfolio/Hazus v5.1 coupled
- data_sources
- seismic
- building
- portfolio
- Hazus v5.1/data_sources
- Hazus v6.1
- data_sources
- subassembly/Hazus v5.1
- data_sources
- power_network/portfolio/Hazus v5.1
- transportation_network/portfolio/Hazus v5.1
- water_network/portfolio/Hazus v6.1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| |||
0 commit comments