Commit 87ddad1
authored
Switch to Ruff for formatting and linting (#544)
* configure ruff and settings
* update pre-commit to use ruff
* Refactor MDIO accessor for type hints, style, and clarity
* Remove unnecessary blank lines in __init__.py files
* Set line-length to 100 in Ruff configuration
* Refactor CLI code for improved type hinting and formatting
* Remove unnecessary blank line in constants.py
* Remove redundant `pass` statements from exception classes
* Refactor tuple comprehensions and exception raising
* Refactor SEG-Y utility functions
* Refactor SEG-Y workers for readability
* Refactor SEGY parser for clarity and type consistency
* Refactor SEG-Y geometry logic and improve logging formatting
* Add type annotations to exception class constructors
* Refactor file handling to use `Path` objects consistently
* Refactor and reformat compat.py
* Refactor SEG-Y blocked I/O
* Refactor type annotations in utils_write.py
* Refactor error handling and simplify conditional branches
* Refactor ChunkIterator and added examples.
* Refactor Grid class and enhanced type annotations
* Refactor `Dimension` class and typing improvements
* Refactor SEG-Y to MDIO converter for readability
* Refactor `numpy_to_mdio`
* Refactor MDIO to SEG-Y conversion with minor improvements
* Refactor exception constructors with type annotations.
* Refactor SEG-Y command for formatting
* Simplify and clean up `info.py` code formatting.
* Refactor MDIO copy function docstring
* Refactor `copy` function docstring and suppress linter warning
* Refactor type hints and optimize imports in io_utils.py
* Improve error messages for unsupported serialization formats
* Refactor serialization tests with type hints and stricter checks
* Add return type annotation to test_create_empty_like
* Refactor test functions to add type annotations.
* Add explicit return type annotations to test functions
* Refactor code and type annotations in tests
* Refactor test_accessor.py to improve type annotations
* Refactor unit test fixtures for clarity and typing support
* Enable E501 ignore for specific integration test file
* Refactor imports and type hints in SEG-Y test module
* Fix function call in unsupported format serializer test
* Update typing annotations and cleanup formatting in tests
* Update segy_to_mdio to support Path objects
* Enable per-file linting ignore for notebook tutorials
* Update linting tools and clarify CVE comment in noxfile
* Remove unnecessary blank line in helpers_segy.py
* Use `datetime.UTC` instead of `timezone.utc`.
* Refactor tests to use `Path` over `os.path` for file handling
* Fix comment for query size validation in accessor.py
* Remove .flake8 configuration file
* Add flake8-future-annotations
* lint and format notebooks
* Update docstyle dependencies and tooling configurations
* lint docs and add more details
* Update `setup-uv` action to v6 and adjust parameters
* Update bump-my-version to 1.1.2
* Fix SEG-Y sparsity check bug I introduced.
* Fix environment variable check for ignoring grid sparsity
* Refactor grid sparsity checks and environment variable handling.
* Update environment variable names for grid sparsity checks
* fix sparsity exception bug
* Update test CLI argument handling for consistent type usage
* revert unintended python version matrix change1 parent abcec1d commit 87ddad1
61 files changed
Lines changed: 1334 additions & 1734 deletions
File tree
- .github/workflows
- docs
- tutorials
- src/mdio
- api
- commands
- converters
- core
- segy
- tests
- integration
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | | - | |
9 | | - | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 41 | | |
59 | 42 | | |
60 | 43 | | |
| |||
63 | 46 | | |
64 | 47 | | |
65 | 48 | | |
66 | | - | |
| 49 | + | |
67 | 50 | | |
68 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | | - | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
390 | 389 | | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
469 | 471 | | |
| 472 | + | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | | - | |
| 477 | + | |
475 | 478 | | |
476 | 479 | | |
477 | | - | |
| 480 | + | |
| 481 | + | |
478 | 482 | | |
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
485 | | - | |
| 489 | + | |
| 490 | + | |
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
489 | 494 | | |
490 | 495 | | |
491 | | - | |
| 496 | + | |
| 497 | + | |
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
| |||
545 | 551 | | |
546 | 552 | | |
547 | 553 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
561 | 567 | | |
562 | 568 | | |
563 | 569 | | |
| |||
0 commit comments