-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
185 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,45 @@ | ||
name: style | ||
name: Style | ||
|
||
on: [pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'version-**' | ||
pull_request: | ||
|
||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
lint_and_black: | ||
check-style: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.12'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
- name: Install everviz with style dependencies | ||
run: | | ||
pip install ".[style]" | ||
- name: Run style check | ||
run: | | ||
ruff . | ||
black --check . | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Install ERT with style dependencies | ||
run: | | ||
uv pip install ".[style]" | ||
- name: Run style check | ||
if: ${{ always() }} | ||
run: | | ||
SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,4 +137,4 @@ dmypy.json | |
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
.pytype/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import logging | ||
import sys | ||
import os | ||
import sys | ||
|
||
|
||
def _formatter(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import os | ||
from collections import namedtuple | ||
|
||
import pandas as pd | ||
|
||
from everviz.log import get_logger | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
from everviz.plugins.best_controls_plot.best_controls_plot import BestControlsPlot | ||
from everviz.plugins.config_editor.config_editor import ConfigEditor | ||
from everviz.plugins.controls_plot.controls_plot import ControlsPlot | ||
from everviz.plugins.crossplot.crossplot import Crossplot | ||
from everviz.plugins.crossplot.crossplot_indexed import CrossplotIndexed | ||
from everviz.plugins.summary_plot.summary_plot import SummaryPlot | ||
from everviz.plugins.objectives_plot.objectives_plot import ObjectivesPlot | ||
from everviz.plugins.objectives_plot.single_objectives_plot import SingleObjectivesPlot | ||
from everviz.plugins.controls_plot.controls_plot import ControlsPlot | ||
from everviz.plugins.best_controls_plot.best_controls_plot import BestControlsPlot | ||
from everviz.plugins.delta_plot.delta_plot import DeltaPlot | ||
from everviz.plugins.gradient_plot import GradientPlot | ||
from everviz.plugins.config_editor.config_editor import ConfigEditor | ||
from everviz.plugins.objectives_plot.objectives_plot import ObjectivesPlot | ||
from everviz.plugins.objectives_plot.single_objectives_plot import SingleObjectivesPlot | ||
from everviz.plugins.summary_plot.summary_plot import SummaryPlot | ||
from everviz.plugins.summary_plot.wells_plot import WellsPlot | ||
|
||
__all__ = [ | ||
"BestControlsPlot", | ||
"ConfigEditor", | ||
"ControlsPlot", | ||
"Crossplot", | ||
"CrossplotIndexed", | ||
"SummaryPlot", | ||
"ObjectivesPlot", | ||
"SingleObjectivesPlot", | ||
"ControlsPlot", | ||
"BestControlsPlot", | ||
"DeltaPlot", | ||
"GradientPlot", | ||
"ConfigEditor", | ||
"ObjectivesPlot", | ||
"SingleObjectivesPlot", | ||
"SummaryPlot", | ||
"WellsPlot", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.