Skip to content

Commit

Permalink
Merge a634334 into c55ed28
Browse files Browse the repository at this point in the history
  • Loading branch information
alifbe authored Feb 8, 2024
2 parents c55ed28 + a634334 commit cf8c8c8
Show file tree
Hide file tree
Showing 47 changed files with 10 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyscal/_version.py export-subst
src/pyscal/_version.py export-subst
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@main

- name: Setup Python
uses: actions/setup-python@main
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pyscal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -71,7 +71,7 @@ jobs:
- name: Check typing with mypy
if: ${{ always() }}
run: |
mypy ./pyscal
mypy src/pyscal
- name: Run tests
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ env*/

# mypy
.mypy_cache/
pyscal/version.py
src/pyscal/version.py
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Now you can make your changes locally.
ruff check .
ruff format .
mypy ./pyscal
mypy src/pyscal
pytest -n auto
8. Commit your changes and push your branch to GitHub:
Expand Down
1 change: 0 additions & 1 deletion docs/make_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path

import matplotlib.pyplot as plt

from pyscal import GasOil, GasWater, WaterOil

IMG_DIR = Path(__file__).absolute().parent / "images"
Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ requires = [

build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["pyscal"]

[tool.setuptools_scm]
write_to = "pyscal/version.py"
write_to = "src/pyscal/version.py"

[project]
name = "pyscal"
Expand Down Expand Up @@ -79,7 +76,7 @@ pyscal = "pyscal.pyscalcli:main"


[tool.ruff]
select=[
lint.select=[
"E",
"F",
"I",
Expand All @@ -96,7 +93,7 @@ select=[

line-length = 88

ignore = ["E741"]
lint.ignore = ["E741"]

[[tool.mypy.overrides]]
module = ["numpy.*", "pyscal.version", "pandas.*", "matplotlib.*", "scipy.*", "xlrd.*", "openpyxl.*"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion tests/test_estimateendpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import hypothesis.strategies as st
import numpy as np
from hypothesis import given

from pyscal import GasOil, WaterOil
from pyscal.constants import EPSILON as epsilon

Expand Down
1 change: 0 additions & 1 deletion tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pandas as pd
import pytest

from pyscal import (
GasOil,
GasWater,
Expand Down
1 change: 0 additions & 1 deletion tests/test_fromtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pandas as pd
import pytest
from hypothesis import given

from pyscal import GasOil, WaterOil, WaterOilGas
from pyscal.utils.testing import check_table, float_df_checker

Expand Down
1 change: 0 additions & 1 deletion tests/test_gasoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import pandas as pd
import pytest
from hypothesis import given

from pyscal import GasOil
from pyscal.constants import MAX_EXPONENT_KR, SWINTEGERS
from pyscal.utils.relperm import truncate_zeroness
Expand Down
1 change: 0 additions & 1 deletion tests/test_gaswater.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import numpy as np
import pytest
from hypothesis import given

from pyscal import GasWater
from pyscal.constants import SWINTEGERS
from pyscal.utils.testing import (
Expand Down
1 change: 0 additions & 1 deletion tests/test_interactive_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np
import pytest
from matplotlib import pyplot

from pyscal import GasOil, GasWater, PyscalFactory, WaterOil, utils

from .test_scalrecommendation import BASE_SAMPLE_LET, HIGH_SAMPLE_LET, LOW_SAMPLE_LET
Expand Down
3 changes: 1 addition & 2 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
import sys
from pathlib import Path

import pytest

import pyscal
import pytest
from pyscal import pyscalcli


Expand Down
1 change: 0 additions & 1 deletion tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import matplotlib.pyplot as plt
import pytest

from pyscal import GasOil, GasWater, PyscalList, WaterOil, WaterOilGas, plotting


Expand Down
1 change: 0 additions & 1 deletion tests/test_pyscalcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import pandas as pd
import pytest

from pyscal import pyscalcli
from pyscal.utils.testing import sat_table_str_ok

Expand Down
1 change: 0 additions & 1 deletion tests/test_pyscallist.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pandas as pd
import pytest

from pyscal import (
GasOil,
GasWater,
Expand Down
1 change: 0 additions & 1 deletion tests/test_scalrecommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pandas as pd
import pytest
from hypothesis import given

from pyscal import GasWater, PyscalFactory, SCALrecommendation, WaterOil, WaterOilGas
from pyscal.factory import slicedict
from pyscal.utils.testing import check_table, sat_table_str_ok, slow_hypothesis
Expand Down
1 change: 0 additions & 1 deletion tests/test_slgof.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
import pytest
from hypothesis import given

from pyscal import GasOil, WaterOilGas
from pyscal.constants import EPSILON, SWINTEGERS
from pyscal.utils.testing import sat_table_str_ok
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_capillarypressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pytest
from hypothesis import given

from pyscal.constants import EPSILON
from pyscal.utils import capillarypressure

Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import pytest
from hypothesis import given
from matplotlib import pyplot as plt

from pyscal import GasOil, WaterOil
from pyscal.constants import EPSILON as epsilon
from pyscal.utils.interpolation import (
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_monotonicity.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
import pandas as pd
import pytest

from pyscal.utils.monotonicity import (
check_almost_monotone,
check_limits,
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_relperm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import numpy as np
import pandas as pd
import pytest

from pyscal.utils.relperm import crosspoint, estimate_diffjumppoint, truncate_zeroness

# pyscal.utils.relperm.crosspoint() is also tested in test_wateroil and test_gasoil.
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_string.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test module for pyscal.utils"""

import pandas as pd

from pyscal.utils.string import comment_formatter, df2str


Expand Down
1 change: 0 additions & 1 deletion tests/test_utils_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import pandas as pd
import pytest

from pyscal.utils.testing import float_df_checker, sat_table_str_ok


Expand Down
1 change: 0 additions & 1 deletion tests/test_wateroil.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import pandas as pd
import pytest
from hypothesis import given

from pyscal import WaterOil
from pyscal.constants import SWINTEGERS
from pyscal.utils.testing import (
Expand Down
1 change: 0 additions & 1 deletion tests/test_wateroil_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
import pytest
from hypothesis import given

from pyscal import WaterOil
from pyscal.constants import MAX_EXPONENT_PC
from pyscal.utils.testing import check_table, float_df_checker, sat_table_str_ok
Expand Down
1 change: 0 additions & 1 deletion tests/test_wateroil_saturation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import hypothesis.strategies as st
from hypothesis import given

from pyscal import WaterOil
from pyscal.constants import EPSILON, SWINTEGERS
from pyscal.utils.testing import check_table, float_df_checker
Expand Down
1 change: 0 additions & 1 deletion tests/test_wateroilgas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pathlib import Path

import pytest

from pyscal import GasOil, WaterOil, WaterOilGas
from pyscal.utils.testing import sat_table_str_ok

Expand Down

0 comments on commit cf8c8c8

Please sign in to comment.