Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint Loads #288

Merged
merged 98 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
2ccc286
Merge pull request #267 from MHKiT-Software/develop
ssolson Aug 31, 2023
ae6b715
assert to exception
ssolson Nov 21, 2023
7614867
Revert "Ensure interpolation values are within range when sampling co…
ssolson Nov 21, 2023
d09e606
Merge branch 'master' of https://github.com/MHKiT-Software/MHKiT-Pyth…
ssolson Nov 29, 2023
35a917c
Merge branch 'develop' of https://github.com/ssolson/MHKiT-Python int…
ssolson Nov 29, 2023
7ef8c7a
black format
ssolson Nov 29, 2023
d1c65f1
add a dev requirements
ssolson Nov 29, 2023
b0ed12a
add check for black formatting
ssolson Nov 29, 2023
ec6331c
add pre commit
ssolson Nov 29, 2023
afd3171
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Dec 6, 2023
667a416
Merge branch 'develop' of https://github.com/ssolson/MHKiT-Python int…
ssolson Dec 6, 2023
b18d585
Merge branch 'lint' of https://github.com/ssolson/MHKiT-Python into lint
ssolson Jan 2, 2024
dbbc63c
change API key
ssolson Jan 3, 2024
da97b9b
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Jan 3, 2024
1e88f00
Treat the None as string "None"
ssolson Jan 11, 2024
eacbcbd
black formatting
ssolson Jan 11, 2024
1614805
remove unused imports, add some type checks
ssolson Jan 12, 2024
3fdda1a
no coverage on artifact load
ssolson Jan 12, 2024
a41f7ab
black formatting
ssolson Jan 12, 2024
332b331
add scipy to TEST env
ssolson Jan 13, 2024
0922388
remove no dependencies
ssolson Jan 14, 2024
797ff26
remove debug imports
ssolson Jan 14, 2024
bd3988d
revert to original main.yaml
ssolson Jan 14, 2024
954edfb
black
ssolson Jan 14, 2024
04f24e0
river io to usgs and d3d
ssolson Jan 15, 2024
3299e60
move d3d tidal into tidal/io
ssolson Jan 15, 2024
2935fc8
quick test to call d3d from tidal
ssolson Jan 15, 2024
3f3dcad
snake_case
ssolson Jan 15, 2024
4103c70
`product` is deprecated as of NumPy 1.25.0
ssolson Jan 15, 2024
7d65eb7
fix import path
ssolson Jan 15, 2024
fd9f9c3
increase test coverage
ssolson Jan 15, 2024
6e3d11a
black
ssolson Jan 15, 2024
cedd6b6
update test filename
ssolson Jan 15, 2024
83719a8
correct name
ssolson Jan 15, 2024
8abfd62
wait fox James to respond
ssolson Jan 16, 2024
5442c6d
increase mooring graphics coverage
ssolson Jan 16, 2024
f85e3ff
increase test coverage
ssolson Jan 16, 2024
ac4e89a
increase coverage
ssolson Jan 16, 2024
683bfcb
catch strings passed as TypeError
ssolson Jan 16, 2024
357306d
Increase coverage on dataTypes
ssolson Jan 16, 2024
f793ce0
throw error on strings passed
ssolson Jan 16, 2024
4d65466
black
ssolson Jan 16, 2024
da60139
remove unused imports
ssolson Jan 19, 2024
1603518
additional input checks
ssolson Jan 19, 2024
d76aa2f
test env contours invalid inputs
ssolson Jan 19, 2024
0ae25f6
uncomment tests
ssolson Jan 19, 2024
b285d5a
do not include cached API requests in coverage
ssolson Jan 19, 2024
816a5f9
black
ssolson Jan 19, 2024
48d8cc4
fix & improve type checks
ssolson Jan 25, 2024
e22dbd0
fix bug on slicing after setting min_bins to 4
ssolson Jan 25, 2024
2fe090e
increase test coverage
ssolson Jan 25, 2024
594e65b
black
ssolson Jan 25, 2024
dc2aee4
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Jan 26, 2024
7aa0ef2
black
ssolson Jan 26, 2024
6dba1df
remove debug
ssolson Jan 26, 2024
eb4b896
black v24.1.0
ssolson Jan 26, 2024
af9d191
fix implementation from #284
ssolson Jan 29, 2024
08182e0
finalize tests for `cpsd_quasisync_1D`
ssolson Jan 29, 2024
93278f3
black
ssolson Jan 29, 2024
41e3a42
remove "alt_raw" merge artifact
ssolson Jan 30, 2024
16832d0
remove positive frequencies test
ssolson Jan 30, 2024
434c78f
black formatting
ssolson Jan 30, 2024
c771f24
black
ssolson Jan 30, 2024
b74110e
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Jan 30, 2024
c2513a7
black
ssolson Jan 30, 2024
997847d
add back copula tests
ssolson Feb 1, 2024
e6546eb
pylint: extreme to multiple files
ssolson Feb 5, 2024
76cf500
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Feb 5, 2024
6e81d90
Merge branch 'lint' into loads
ssolson Feb 5, 2024
de051ea
lint
ssolson Feb 6, 2024
b1f7a6a
clean up module docstring
ssolson Feb 6, 2024
13ca14b
fix too many local args
ssolson Feb 6, 2024
d25369a
linting
ssolson Feb 6, 2024
0009bf6
match correct module name
ssolson Feb 6, 2024
8a17e29
middle of getting linted versions working
ssolson Feb 9, 2024
3078687
mler perfect lint
ssolson Feb 14, 2024
591fed4
fix type errors
ssolson Feb 19, 2024
05d3d66
lint
ssolson Feb 19, 2024
dd6dfef
pylint loads 80%
ssolson Feb 20, 2024
77cf60c
remove comments
ssolson Feb 20, 2024
f5185e1
try this
ssolson Feb 20, 2024
3c6f892
set to 7
ssolson Feb 20, 2024
7605238
100% peaks
ssolson Feb 20, 2024
c2fc1a6
pylint 10/10 extereme
ssolson Feb 22, 2024
50355de
should run perfect on extreme
ssolson Feb 22, 2024
d2b121d
mhkit/loads/extreme/
ssolson Feb 22, 2024
8e55cc3
does this fix install issues?
ssolson Feb 22, 2024
8323b43
install package
ssolson Feb 22, 2024
0b48117
install
ssolson Feb 22, 2024
5156067
remove [] empyty array input
ssolson Feb 23, 2024
38f114b
lint 10/10
ssolson Feb 23, 2024
b3019b1
list works; throw error on string data
ssolson Feb 23, 2024
7c744ae
entire loads module
ssolson Feb 23, 2024
c25a28f
docstring
ssolson Feb 23, 2024
77b6355
10/10
ssolson Feb 23, 2024
b34b5ea
type_handling function for checking numeric arrays
ssolson Feb 23, 2024
8103c0e
typehints
ssolson Feb 23, 2024
40f8ebf
typehints
ssolson Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pylint Loads

on: [push, pull_request]

jobs:
formatting-and-linting:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install pylint
pip install .

- name: Run Pylint on mhkit/loads/
run: |
pylint mhkit/loads/
9 changes: 9 additions & 0 deletions mhkit/loads/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
The `loads` package of the MHKiT (Marine and Hydrokinetic Toolkit) library
provides tools and functionalities for analyzing and visualizing loads data
from marine and hydrokinetic (MHK) devices. This package is designed to
assist engineers, researchers, and analysts in understanding the forces and
stresses applied to MHK devices under various operational and environmental
conditions.
"""

from mhkit.loads import general
from mhkit.loads import graphics
from mhkit.loads import extreme
Loading
Loading