Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
c5e32b4
update ground tem target values
jamiefb Jan 24, 2024
bc52420
update ground_tem target values
jamiefb Jan 24, 2024
f5ef59e
revert ground_tem change
jamiefb Jan 24, 2024
1d9d834
Merge pull request #652 from MiraGeoscience/GEOPY-1204
domfournier Jan 25, 2024
7ccc6da
Bump peter-evans/create-or-update-comment from 3 to 4
dependabot[bot] Feb 1, 2024
3ecbc0c
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 5, 2024
d753755
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 5, 2024
6ca4f92
Merge pull request #655 from MiraGeoscience/dependabot/github_actions…
domfournier Feb 8, 2024
4dedff8
Merge pull request #641 from MiraGeoscience/pre-commit-ci-update-config
domfournier Feb 8, 2024
18fd72d
update versions of tools for building the doc
sebhmg Feb 8, 2024
317dd1d
Fix issue with duplicate log on reference
domfournier Feb 21, 2024
afb886c
Add Expmap on joint
domfournier Feb 21, 2024
d83e0d8
Reset input file on geoh5 change. Augment tests
domfournier Feb 21, 2024
2f83df2
Fix tests
domfournier Feb 23, 2024
dea4068
Revert "Fix tests"
domfournier Feb 24, 2024
6ac84fd
Revert changes to driver, remove setting of geoh5 on params by app
domfournier Feb 24, 2024
43fe802
Merge pull request #663 from MiraGeoscience/GEOPY-1371
domfournier Feb 29, 2024
ea8379e
Merge branch 'release/0.11.1' into GEOPY-1390
domfournier Feb 29, 2024
87976fc
Merge pull request #662 from MiraGeoscience/GEOPY-1265c
domfournier Mar 1, 2024
1cf0cae
Merge branch 'release/0.11.1' into GEOPY-1390
domfournier Mar 1, 2024
e2a668a
Merge pull request #665 from MiraGeoscience/GEOPY-1390
domfournier Mar 1, 2024
810e9b4
Add check for params class
domfournier Mar 12, 2024
30d8ff0
Merge pull request #667 from MiraGeoscience/GEOPY-1409
domfournier Mar 15, 2024
4819160
Update dependencies. Drop support for 3.9
domfournier Mar 19, 2024
c710b92
Fix edge detection
domfournier Mar 19, 2024
7711c13
Update dependencies. Drop support for 3.9
domfournier Mar 19, 2024
218c9d6
Merge branch 'release/0.12.0' into GEOPY-1423
domfournier Mar 19, 2024
ce47af1
Merge pull request #668 from MiraGeoscience/GEOPY-1423
domfournier Mar 22, 2024
df04a04
Check if input object is valid before running edge detection
domfournier Mar 26, 2024
b3f5c23
Supress warnings with bad defaults
domfournier Mar 26, 2024
39d5e84
Merge pull request #669 from MiraGeoscience/GEOPY-1427
domfournier Mar 30, 2024
25a9f6a
GEOPY-1445: sync scripts and doc with version from the template repo
sebhmg Apr 6, 2024
1f6246e
GEOPY-1445: Merge remote-tracking branch 'upstream/release/0.12.0' in…
sebhmg Apr 8, 2024
5ee9732
GEOPY-1445: support is only Python 3.10 now
sebhmg Apr 8, 2024
002509e
GEOPY-1445: fix typos
sebhmg Apr 12, 2024
5f5b384
update kmeans to ensure the clusters are always the same.
MatthieuCMira Apr 16, 2024
3e74b68
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 16, 2024
a708f4e
Change alpha value of colors
domfournier Apr 17, 2024
631f263
Update geoapps/clustering/driver.py
domfournier Apr 17, 2024
25fbaef
Merge branch 'GEOPY-1245' of https://github.com/MiraGeoscience/geoapp…
domfournier Apr 17, 2024
f3e5c3d
Merge pull request #673 from MiraGeoscience/GEOPY-1245
domfournier Apr 18, 2024
013afc3
GEOPY-1445: Merge remote-tracking branch 'upstream/release/0.12.0' in…
sebhmg Apr 21, 2024
3c5f495
GEOPY-1445: update PyCharm config for Copyrights
sebhmg Apr 21, 2024
06e461f
GEOPY-1445: update environment lock files
sebhmg Apr 22, 2024
12218f2
GEOPY-1445: get pydantic from conda, not pip
sebhmg Apr 22, 2024
19fa034
GEOPY-1445: get lasio from conda, not pip
sebhmg Apr 22, 2024
9e4d0fd
GEOPY-1445: add missing from future
sebhmg Apr 22, 2024
4534ab4
GEOPY-1445: apply pyupgrade for Python 3.10
sebhmg Apr 22, 2024
f8dd47f
Merge pull request #675 from sebhmg/GEOPY-1445
sebhmg Apr 22, 2024
24141d8
GEOPY-1445: force libmamba solver
sebhmg Apr 22, 2024
43ded14
Merge pull request #676 from sebhmg/GEOPY-1445
sebhmg Apr 22, 2024
3f538f3
Fix beta start
domfournier Apr 22, 2024
e87d37b
Update requirements. Add print for testing
domfournier Apr 23, 2024
0387bac
Set seed in directive args
domfournier Apr 23, 2024
f34841d
Remove autoflake
domfournier Apr 23, 2024
fb6e78f
Remove random seed
domfournier Apr 23, 2024
97cb100
Update tests
domfournier Apr 23, 2024
35ee4dc
Point to dev8
domfournier Apr 23, 2024
6f1e7c0
Fix tests
domfournier Apr 23, 2024
ed3a8f2
Fic ip test
domfournier Apr 23, 2024
e935cfc
Move update of limits to object selection
domfournier Apr 23, 2024
ee7efa5
Add target to print. clean up
domfournier Apr 24, 2024
9c13fdc
Change geoapps.inversion import to simpeg_drivers (except em1d and ap…
benk-mira Apr 24, 2024
6ebf085
run_commands -> simpeg_drivers.driver
benk-mira Apr 24, 2024
b17f888
Merge pull request #679 from MiraGeoscience/GEOPY-1471
domfournier Apr 24, 2024
2b8a860
BaseDriver and BaseParams should come from geoapps-utils
benk-mira Apr 24, 2024
fae0a9d
Merge branch 'release/0.12.0' into GEOPY-1252
domfournier Apr 24, 2024
80989db
Cull out overlapping tests
benk-mira Apr 24, 2024
fb091e7
remove unnecessary import
benk-mira Apr 24, 2024
50a6d72
Merge branch 'release/0.12.0' into GEOPY-1223
benk-mira Apr 24, 2024
cbe56fd
Merge pull request #677 from MiraGeoscience/GEOPY-1252
domfournier Apr 24, 2024
9358836
point octree application to octree-creation-app driver/params
benk-mira Apr 25, 2024
7d68af9
Merge branch 'release/0.12.0' into GEOPY-1223
benk-mira Apr 25, 2024
cf5f554
Merge branch 'GEOPY-1223' into GEOPY-1224
benk-mira Apr 25, 2024
701d4e0
change imports
benk-mira Apr 25, 2024
f5501cc
update run_command
benk-mira Apr 25, 2024
e139232
update refinement widgets for new format
benk-mira Apr 25, 2024
7896696
Update lock files
benk-mira Apr 25, 2024
62a9ad6
pylint fixes
benk-mira Apr 26, 2024
ffbc237
pylint
benk-mira Apr 26, 2024
76dc2e5
pylint
benk-mira Apr 26, 2024
3560302
remove old drivers/params files
benk-mira Apr 26, 2024
0f4e9c7
update lock files
benk-mira Apr 26, 2024
37291ea
update mesh and data object in flinflon.geoh5
benk-mira Apr 26, 2024
bac0ca7
cull constants so that only app_initializers left
benk-mira Apr 26, 2024
e962a13
update inversion test with new dc mesh uid
benk-mira Apr 26, 2024
b2a337b
GEOPY-1472: take changes from template repo (for run_conda_lock)
sebhmg Apr 27, 2024
fc5a809
GEOPY-1472: update comment on libblas in pyproject.toml
sebhmg Apr 27, 2024
b66acda
GEOPY-1233: no need for test.pypi
sebhmg Apr 28, 2024
e67850f
GEOPY-1472: include license files in distrib
sebhmg Apr 28, 2024
87f45ad
GEOPY-1472: add pre-commit pycln to remove unused import
sebhmg Apr 28, 2024
e8eda23
update toml
benk-mira Apr 29, 2024
c0b7967
Remove osx from supported systems. Regenerate locks
domfournier Apr 29, 2024
a3f34ef
Fix copyright
domfournier Apr 29, 2024
ded7cb4
GEOPY-1472: update pre-commit hook from repo template
sebhmg Apr 30, 2024
13925ea
GEOPY-1472: fix linter error on dev scripts
sebhmg Apr 30, 2024
704f2ec
GEOPY-1472: add JIRA keys DEVOPS and QA to message hook
sebhmg Apr 30, 2024
2b8bc27
GEOPY-1472: add shebang on executable scripts
sebhmg Apr 30, 2024
6113dd7
GEOPY-1472: fixup generation of locked env file: no setuptools-scm
sebhmg Apr 30, 2024
1ff5463
GEOPY-1472: fix deletion of multi platform lock
sebhmg Apr 30, 2024
da52194
GEOPY-1472: do not run json formatter on notebooks
sebhmg Apr 30, 2024
c1b700d
GEOPY-1472: do not run json formatter on doc plot images
sebhmg Apr 30, 2024
b257b6b
GEOPY-1472: auto-reformatting of dev script
sebhmg Apr 30, 2024
847eecf
GEOPY-1472: no more extra package nor I/O and point to latest publish…
sebhmg Apr 30, 2024
e3500bc
GEOPY-1472: numpy 1.26 for mypy in pre-commit CI
sebhmg Apr 30, 2024
64eef9c
GEOPY-1472: auto-format of json files
pre-commit-ci[bot] Apr 30, 2024
094b699
GEOPY-1472: address obvious linter errors
sebhmg May 1, 2024
3209845
GEOPY-1472: for now disable flake8 report on complexity
sebhmg May 1, 2024
d9418b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 1, 2024
4f2c702
GEOPY-1223: Merge branch 'GEOPY-1472' into GEOPY-1223
sebhmg May 1, 2024
67fc233
GEOPY-1223: do not try to validate Jupyter notebook as json
sebhmg May 1, 2024
ed89dd1
Merge branch 'GEOPY-1223' into GEOPY-1224
benk-mira May 1, 2024
005c2a9
GEOPY-1223: do not run github workflow on draft PR
sebhmg May 1, 2024
410be5f
GEOPY-1223: Merge branch 'GEOPY-1472' into GEOPY-1223
sebhmg May 1, 2024
6a23459
GEOPY-1472: do not try to validate Jupyter notebook as json
sebhmg May 1, 2024
34eb161
GEOPY-1472: do not run github workflow on draft PR
sebhmg May 1, 2024
255937a
GEOPY-1472: add back scikit-image (a direct dependency)
sebhmg May 1, 2024
7a3161d
GEOPY-1472: fix remaining flake8 reports
sebhmg May 1, 2024
bfa0579
GEOPY-1472: pin down scipy to a version available in pip too
sebhmg May 1, 2024
156749f
GEOPY-1223: Merge branch 'GEOPY-1472' into GEOPY-1223
sebhmg May 1, 2024
135ae5d
GEOPY-1223: fix environment
sebhmg May 1, 2024
f12bbd5
GEOPY-1472: fix flake8
sebhmg May 1, 2024
a36f7ad
GEOPY-1472: fix flake8
sebhmg May 1, 2024
7b5c5a6
Delete geoapps-assets/uijson/joint_single.ui.json
benk-mira May 1, 2024
8e56630
Delete geoapps/inversion/components/__init__.py
benk-mira May 1, 2024
c42d5e6
Delete geoapps/inversion/components/data.py
benk-mira May 1, 2024
c177731
Delete geoapps/inversion/components/factories/__init__.py
benk-mira May 1, 2024
20fba7a
Delete geoapps/inversion/components/factories/source_factory.py
benk-mira May 1, 2024
b8ef78f
GEOPY-1472: fix environment
sebhmg May 1, 2024
ac1ad15
Merge pull request #684 from sebhmg/GEOPY-1223
benk-mira May 1, 2024
41863c7
GEOPY-1472: address pylint errors
sebhmg May 1, 2024
a7975c1
GEOPY-1472: address pylint error on NoneType
sebhmg May 2, 2024
ff6e2e3
Merge pull request #682 from sebhmg/GEOPY-1472
sebhmg May 2, 2024
f635d47
GEOPY-1490: attempt to fixup dependencies to build env
sebhmg May 2, 2024
c3acea6
GEOPY-1490: try to get it work on Windows first
sebhmg May 2, 2024
102a432
Update lock files
benk-mira May 2, 2024
45e12f7
Merge branch 'GEOPY-1223' of github.com:MiraGeoscience/geoapps into G…
benk-mira May 2, 2024
a6b4b52
Update lock files
benk-mira May 2, 2024
6fd4e54
Merge branch 'release/0.12.0' into GEOPY-1223
benk-mira May 2, 2024
fb94d3a
rebuild lock files.. again
benk-mira May 2, 2024
2ef0d41
Merge branch 'GEOPY-1223' into GEOPY-1224
benk-mira May 2, 2024
8260acb
clean out constants and rerun lock
benk-mira May 2, 2024
a26262a
Fix bug. Add unit test
domfournier May 2, 2024
c370def
Merge pull request #680 from MiraGeoscience/GEOPY-1223
domfournier May 2, 2024
68df5f1
Merge branch 'release/0.12.0' into GEOPY-1224
domfournier May 2, 2024
3620c21
Merge pull request #681 from MiraGeoscience/GEOPY-1224
domfournier May 2, 2024
a5868ab
Add try except for missing object or data
domfournier May 2, 2024
a7cb751
Apply same except to all remaining apps
domfournier May 2, 2024
e310274
GEOPY-1490: fix resolution by conda-lock
sebhmg May 4, 2024
b3d57b5
GEOPY-1490: Merge remote-tracking branch 'upstream/release/0.12.0' in…
sebhmg May 4, 2024
5013af2
GEOPY-1490: remove use of local geoh5py or param-sweeps
sebhmg May 4, 2024
117bcc0
GEOPY-1490: explicitly declare dependency on geoapps-utils and octree…
sebhmg May 6, 2024
3cebae2
Fix warning for short output
domfournier May 6, 2024
4eac863
GEOPY-1490: comment about geoapps-utils["dash"]
sebhmg May 6, 2024
8016cbd
Merge branch 'GEOPY-1493' into GEOPY-1492
domfournier May 6, 2024
a4e66c8
Merge pull request #685 from MiraGeoscience/GEOPY-1493
domfournier May 6, 2024
18b8feb
Merge branch 'release/0.12.0' into GEOPY-1492
domfournier May 6, 2024
661659b
Merge pull request #687 from MiraGeoscience/GEOPY-1492
domfournier May 7, 2024
2533cc7
Clean up octree creation notebook
domfournier May 7, 2024
a0f5a94
Use UUID in all app_initializers
domfournier May 7, 2024
1917d03
Clean out inversion params tests
domfournier May 7, 2024
2717390
Remove params test fully
domfournier May 7, 2024
4b9ff5f
Revert "Remove params test fully"
domfournier May 7, 2024
d9b55e2
Keep only Peak Finder
domfournier May 7, 2024
81be497
Merge pull request #686 from sebhmg/GEOPY-1490
sebhmg May 8, 2024
3f019b6
Merge pull request #689 from MiraGeoscience/GEOPY-1495
domfournier May 9, 2024
28c4701
Merge pull request #688 from MiraGeoscience/GEOPY-1502
domfournier May 9, 2024
0a664f5
GEOPY-1523: update conda lock files
sebhmg May 15, 2024
0dcbf13
Merge pull request #691 from sebhmg/GEOPY-1523
sebhmg May 15, 2024
3b2f55d
regen lock files: newer simpeg
sebhmg May 21, 2024
8f2a228
GEOPY-863: use new dev script to create lock files
sebhmg May 24, 2024
c7f80b6
Merge pull request #694 from MiraGeoscience/GEOPY-863
domfournier May 27, 2024
77c2d8c
Add peak-finder to list of requirements
domfournier May 30, 2024
94e1f64
Move functionality to base. Clean out old files
domfournier May 30, 2024
c8e509d
Final fixes
domfournier May 30, 2024
b5fdbd6
Remove peak finder test
domfournier May 30, 2024
d4c6f6b
Use airborne_tem file instead
domfournier May 31, 2024
0693c3d
lock on geoapps-utils 0.3.0rc4
sebhmg May 31, 2024
8468a68
Merge branch 'release/0.12.0' into GEOPY-998
domfournier May 31, 2024
51258d0
Merge pull request #697 from MiraGeoscience/GEOPY-998
domfournier May 31, 2024
c23479e
add license files to both sdist and wheel
sebhmg Jun 6, 2024
123fa12
GEOPY-1565: pass token for CodeCov v4
sebhmg Jun 6, 2024
43a02ff
GEOPY-1566: use newer Pillow, geoh5py and simpeg-drivers
sebhmg Jun 6, 2024
412ce22
GEOPY-1566: use newer pip packages
sebhmg Jun 7, 2024
e12a7f6
GEOPY-1566: maintain code coverage above 75%
sebhmg Jun 7, 2024
dfd2977
Merge remote-tracking branch 'origin/release/0.12.0' into GEOPY-1566
sebhmg Jun 7, 2024
224e7ee
GEOPY-1566: ensure usage of peak-finder rc.2
sebhmg Jun 7, 2024
8c5d784
GEOPY-1566: lower required code coverage to 35% for now
sebhmg Jun 7, 2024
3da8bd5
simplify call to pytest in GitHub workflow
sebhmg Jun 7, 2024
3eee643
rename yaml to yml for consistency
sebhmg Jun 7, 2024
b81e20b
Merge pull request #699 from MiraGeoscience/GEOPY-1566
sebhmg Jun 7, 2024
70aaab4
bump version to beta.1 - points to released packages (no more RC)
sebhmg Jun 18, 2024
df184c9
Reset external_sheets to None
domfournier Jun 27, 2024
4b0e372
Merge pull request #704 from MiraGeoscience/GEOPY-1598
domfournier Jul 3, 2024
d5dda76
in dependencies: no more #sha256= and use tar.gz
sebhmg Jul 3, 2024
be72db9
update comments about deps with URLs or git revisions
sebhmg Jul 3, 2024
07911d1
for version of tbb to align pypi and conda
sebhmg Jul 3, 2024
5592983
GEOPY-1651: use updated simpeg-drivers and param-sweeps
sebhmg Jul 31, 2024
9a1c3ee
Merge pull request #710 from MiraGeoscience/GEOPY-1651
sebhmg Jul 31, 2024
e43f733
relock Conda env files
sebhmg Jul 31, 2024
f4734c4
Merge pull request #711 from MiraGeoscience/GEOPY-1651
sebhmg Jul 31, 2024
2e0fd20
Update copyright
benk-mira Jan 9, 2025
f074eff
update pre-commit config
sebhmg Jan 13, 2025
526d1dc
do not include license file in sdist
sebhmg Jan 13, 2025
1b8820b
remove now unnecessary dev scripts
sebhmg Jan 13, 2025
37ec438
exclude notebook from Ruff checks
sebhmg Jan 13, 2025
b0f75ee
apply auto-formatting
sebhmg Jan 13, 2025
177bba4
disable check stdlib-module-shadowing for now
sebhmg Jan 13, 2025
e822cd4
update remaining copyright dates
sebhmg Jan 13, 2025
17fe040
fix partial or obsolete package information
sebhmg Jan 13, 2025
7199b53
add license and copyright notice in the doc
sebhmg Jan 13, 2025
c0988f7
expose version under package title in the doc
sebhmg Jan 13, 2025
3c05487
more file types for LFS
sebhmg Jan 13, 2025
405adef
Merge pull request #721 from MiraGeoscience/GEOPY-1933
domfournier Jan 13, 2025
c3c394a
update PyCharm "sources" scope
sebhmg Jan 13, 2025
042c7d8
Merge remote-tracking branch 'upstream/GEOPY-1933' into release/0.12.…
sebhmg Jan 13, 2025
81d7d25
Add package file
domfournier Feb 10, 2025
4df568a
For GEOPY-1930
domfournier Feb 10, 2025
9100045
For GEOPY-1859
domfournier Feb 10, 2025
3e2b49b
Update README link to TPS
domfournier Feb 10, 2025
03f6af9
Use package.rst as readme
domfournier Feb 10, 2025
3ee2153
Fix bad copy of names
domfournier Feb 10, 2025
ce44eb2
Re-lock on latest geoh5py
domfournier Feb 10, 2025
3a270f4
Re-lock files
domfournier Feb 10, 2025
a49f24c
Update dependencies for jupyterlab, notebook and such
domfournier Feb 13, 2025
eb8d7bb
Add notebook in
domfournier Feb 13, 2025
9cedad1
Fix start notebook
domfournier Feb 18, 2025
4effb0d
Fix peak finder input
domfournier Feb 18, 2025
85690d1
Fix reference to SimPEG -> simpeg
domfournier Feb 18, 2025
c078c49
Fix clustering app failure on array length
domfournier Feb 18, 2025
a7dbc96
Switch matplotlib to conda
domfournier Feb 18, 2025
011adb7
Bulk updates
domfournier Feb 19, 2025
36fe034
Remove obsolete test
domfournier Feb 19, 2025
1242f17
Remove extra masking for dc ip
domfournier Feb 20, 2025
3245b41
Fix issue with new definition of centroids
domfournier Feb 20, 2025
b0df8f4
Fix type for gdal
domfournier Feb 20, 2025
4dc4b93
Disable protected access
domfournier Feb 20, 2025
b0ac9a4
Re-build locks
domfournier Feb 20, 2025
74a2dec
Merge pull request #726 from MiraGeoscience/GEOPY-2007
domfournier Feb 20, 2025
6774c38
Refresh README
domfournier Mar 31, 2025
1a0a606
Bump python version for docs
domfournier Mar 31, 2025
09c41b7
Merge pull request #728 from MiraGeoscience/GEOPY-1163
domfournier Apr 1, 2025
a1dffa8
Remove beta from version
domfournier Apr 14, 2025
2e14027
Merge branch 'main' into release/0.12.0-dev.1
domfournier Apr 14, 2025
bc791a1
Update release notes.
domfournier Apr 14, 2025
f1a0b06
Add _param_class as class attribute to base
domfournier Apr 14, 2025
9c80259
Disable protected access
domfournier Apr 14, 2025
53b71df
UNpin version for docs
domfournier Apr 14, 2025
8d5a59b
Fix language warning to "en"
domfournier Apr 14, 2025
aeafcc1
Remove numbering on getting started
domfournier Apr 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
[flake8]
ignore = E203, E266, E501, W503
ignore =
E203,
E266,
E501,
W503,
# TODO: reduce complexity and restore this rule (Function is too complex)
C901,


max-line-length = 80
max-complexity = 16
select = B,C,E,F,W,T4,B9
per-file-ignores =
geoapps/clustering/driver.py: E402
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.pt filter=lfs diff=lfs merge=lfs -text
*.geoh5 filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.min.js filter=lfs diff=lfs merge=lfs -text
*.ipynb filter=lfs diff=lfs merge=lfs -text
2 changes: 1 addition & 1 deletion .github/workflows/issue_to_jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Additional fields in JSON format
fields: '{"components": [{"name": "geoapps"}]}'
- name: Post JIRA link
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
# The number of the issue or pull request in which to create a comment.
issue-number: ${{ github.event.issue.number }}
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/pr_add_jira_summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
PR_TITLE: ${{ github.event.pull_request.title }}
run: >
echo $HEAD_REF $PR_TITLE
| echo "issue_key=$(grep -os "\b\(GA\|GEOPY\)-[0-9]\+" | head -n1)" >> $GITHUB_OUTPUT
| echo "issue_key=$(
grep -osi "\b\(GA\|GEOPY\|DEVOPS\)[ #-]*[0-9]\+"
| head -n1
| sed -E "s/([A-Z]+)[-# ]*([0-9]+)/\1-\2/i"
| tr [:lower:] [:upper:]
)"
>> $GITHUB_OUTPUT
- name: Get JIRA summary
id: get_jira_summary
if: ${{ steps.find_jira_key.outputs.issue_key }}
Expand All @@ -31,18 +37,26 @@ jobs:
-H "Authorization: Basic $JIRA_BASIC_AUTH"
-H "Content-Type: application/json"
"$JIRA_BASE_URL/rest/api/2/issue/${{ steps.find_jira_key.outputs.issue_key }}"
| echo "summary=$(jq -r '.fields.summary')" >> $GITHUB_OUTPUT
| echo "summary=$(jq -r '.fields.summary // empty')" >> $GITHUB_OUTPUT
- name: Extract PR title
id: get_pr_title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "text=$(echo $PR_TITLE | sed -E "s/^\s*[?[A-Z]+[-# ]*[0-9]+]?[-: ]*(.*)/\1/i")" >> $GITHUB_OUTPUT
- name: Add comment
if: ${{ steps.find_jira_key.outputs.issue_key }}
env:
ISSUE_SUMMARY: ${{ steps.get_jira_summary.outputs.summary }}
TITLE_TEXT: ${{ steps.get_pr_title.outputs.text }}
PR_BODY: ${{ github.event.pull_request.body }}
run: >
jq
--arg ISSUE_ID "${{ steps.find_jira_key.outputs.issue_key }}"
--arg ISSUE_SUMMARY "$(cat <<< $ISSUE_SUMMARY)"
--arg TITLE_TEXT "$(cat <<< ${TITLE_TEXT:-$ISSUE_SUMMARY})"
--arg PR_BODY "$(cat <<< $PR_BODY)"
-c '."body"="**" + $ISSUE_ID + " - " + $ISSUE_SUMMARY + "**\n" + $PR_BODY' <<< {}
-c '{"title": ($ISSUE_ID + ": " + $TITLE_TEXT), "body": ("**" + $ISSUE_ID + " - " + $ISSUE_SUMMARY + "**\n" + $PR_BODY)}' <<< {}
| curl -sS -X POST -d @-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}"
-H "Content-Type: application/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: pytest on Unix OS

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop
- main
Expand All @@ -20,25 +21,24 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
source_dir: geoapps

jobs:
pytest:
name: pytest (Unix)
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
python_ver: ['3.9', '3.10']
python_ver: ['3.10']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
env:
PYTHONUTF8: 1
CONDA_LOCK_ENV_FILE: environments/conda-py-${{ matrix.python_ver }}-${{ startsWith(matrix.os, 'macos') && 'osx' || 'linux' }}-64-dev.lock.yml
PIP_EXTRA_INDEX_URL: https://test.pypi.org/simple/
CONDA_CHANNEL_PRIORITY: strict
PIP_NO_DEPS: 1 # all dependencies are installed from conda
CONDA_LOCK_ENV_FILE: environments/py-${{ matrix.python_ver }}-${{ startsWith(matrix.os, 'macos') && 'osx' || 'linux' }}-64-dev.conda.lock.yml
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -50,5 +50,4 @@ jobs:
environment-name: test_env
cache-downloads: true
- name: pytest
run: |
pytest --cov=${source_dir} --cov-report=xml --cov-branch
run: pytest --cov --cov-report=xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: pytest on Windows

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop
- main
Expand All @@ -20,24 +21,23 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
source_dir: geoapps

jobs:
pytest:
name: pytest (Windows)
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
python_ver: ['3.9', '3.10']
python_ver: ['3.10']
defaults:
run:
shell: powershell
runs-on: windows-latest
env:
PYTHONUTF8: 1
CONDA_LOCK_ENV_FILE: environments/conda-py-${{ matrix.python_ver }}-win-64-dev.lock.yml
PIP_EXTRA_INDEX_URL: https://test.pypi.org/simple/
CONDA_CHANNEL_PRIORITY: strict
PIP_NO_DEPS: 1 # all dependencies are installed from conda
CONDA_LOCK_ENV_FILE: environments/py-${{ matrix.python_ver }}-win-64-dev.conda.lock.yml
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -50,10 +50,11 @@ jobs:
init-shell: powershell
cache-downloads: true
- name: pytest
run: |
pytest --cov=${source_dir} --cov-report=xml --cov-branch
run: pytest --cov --cov-report=xml
- name: Codecov
if: ${{ success() && matrix.python_ver == '3.9' }}
uses: codecov/codecov-action@v3
if: ${{ success() && matrix.python_ver == '3.10' }}
uses: codecov/codecov-action@v4
with:
name: GitHub
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 5 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: static analysis

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop
- main
Expand All @@ -26,14 +27,16 @@ env:
jobs:
pylint:
name: pylint
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
PYTHONUTF8: 1
CONDA_LOCK_ENV_FILE: environments/conda-py-3.9-linux-64-dev.lock.yml
PIP_EXTRA_INDEX_URL: https://test.pypi.org/simple/
CONDA_CHANNEL_PRIORITY: strict
PIP_NO_DEPS: 1 # all dependencies are installed from conda
CONDA_LOCK_ENV_FILE: environments/py-3.10-linux-64-dev.conda.lock.yml
steps:
- uses: actions/checkout@v4
- name: Setup conda env
Expand Down
6 changes: 4 additions & 2 deletions .idea/copyright/Mira_Geoscience___MIT.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .idea/scopes/mira_sources.xml

This file was deleted.

3 changes: 3 additions & 0 deletions .idea/scopes/sources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 48 additions & 48 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

default_language_version:
python: python3
exclude: (^docs/(conf.py|_ext/)|^geoapps/simpeg(PF|EM1D)/|^geoapps-assets/)
default_stages: [commit,push]
exclude: (^docs/(conf.py|_ext/))
default_stages: [pre-commit,pre-push]
fail_fast: false

ci:
Expand All @@ -11,42 +11,46 @@ ci:
autoupdate_schedule: monthly

repos:
- repo: https://github.com/psf/black
rev: 23.10.0
- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: isort
additional_dependencies: [tomli] # to read config from pyproject.toml
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.1
hooks:
- id: autoflake
#- repo: https://github.com/PyCQA/flake8
# rev: 6.1.0
# hooks:
# - id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py39-plus]
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.6.1
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
# - --unsafe-fixes
exclude_types: [jupyter]
- id: ruff-format
exclude_types: [jupyter]
#- repo: https://github.com/pre-commit/mirrors-mypy # TODO: fix mypy errors
# rev: v1.10.0
# hooks:
# - id: mypy
# additional_dependencies: [
# numpy==1.26.*,
# types-toml,
# types-PyYAML,
# tomli # to read config from pyproject.toml
# tomli # to read config from pyproject.toml
# ]
# exclude: ^(docs|geoapps-assets)/
- repo: https://github.com/codingjoe/relint
rev: 3.1.0
rev: 3.3.1
hooks:
- id: relint
args: [-W] # to fail on warnings
- repo: https://github.com/MiraGeoscience/pre-commit-hooks
rev: v1.1.0
hooks:
- id: check-copyright
files: (^package\.rst|^LICENSE|^README(|-dev)\.rst|\.py|\.pyi)$
exclude: (^\.|^docs/)
- id: prepare-commit-msg
- id: check-commit-msg
- repo: local
hooks:
- id: pylint
Expand All @@ -56,47 +60,43 @@ repos:
require_serial: true # pylint does its own parallelism
types: [python]
exclude: ^(devtools|docs)/
- id: check-copyright
name: Check copyright
entry: python devtools/check-copyright.py
language: python
types: [text]
files: (^LICENSE|^README(|-dev).rst|\.py|\.pyi)$
exclude: (^\.|^docs/)
- id: prepare-commit-msg
stages: [prepare-commit-msg]
name: Prepare commit message
entry: python devtools/git_message_hook.py --prepare
language: python
- id: check-commit-msg
stages: [commit-msg]
name: Check commit message
entry: python devtools/git_message_hook.py --check
language: python
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
exclude: (-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$
entry: codespell -I .codespellignore
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: \.mdj$
- id: check-json
exclude_types: [jupyter]
- id: check-toml
- id: check-yaml
# - id: check-added-large-files # crashing on some configuration. To be investigated
- id: check-added-large-files
# args: [--enforce-all]
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
exclude: \.mdj$
exclude: (^\.idea/.*\.xml|\.mdj)$
- id: mixed-line-ending
exclude: ^\.idea/.*\.xml$
- id: name-tests-test
- id: pretty-format-json
args:
- --autofix
- --indent=4
- --no-sort-keys
- --top-keys
- version,title,icon,documentation,conda_environment,run_command,geoh5,monitoring_directory,workspace_geoh5
exclude_types: [jupyter]
exclude: ^docs/.*/images/
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.0
rev: v6.2.4
hooks:
- id: rstcheck
exclude: ^THIRD_PARTY_SOFTWARE.rst$
Expand Down
Loading
Loading