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

65 ruff #66

Draft
wants to merge 24 commits into
base: ustar_cp_refactor_main
Choose a base branch
from
Draft
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2 # Update to the desired version mno
hooks:
# Run linting checks!
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
files: "^.*\\.py$"
hooks:
- id: ruff-format


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tool.pytest.ini_options]
addopts = "-v -p no:warnings --doctest-modules --show-progress -n 1 --dist=loadfile"
python_files = 'test_*.py'
testpaths = ['tests']
testpaths = ['tests']
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ matlabengine >= 24.1.2
pytest >=8.3.2
pytest-cov >=5.0.0
pytest-progress >=1.3.0
pytest-xdist >= 3.6.0
pytest-xdist >= 3.6.0
ruff>=0.8.2
pre-commit>=4.0.1
2 changes: 1 addition & 1 deletion runoneflux.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''
'''
runoneflux.py

For license information:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def matlab_engine(refactored=True):
eng = matlab.engine.start_matlab()

current_dir = os.getcwd()
code_path = 'oneflux_steps/ustar_cp_refactor_wip/' if refactored else 'oneflux_steps/ustar_cp'
code_path='oneflux_steps/ustar_cp_refactor_wip/' if refactored else 'oneflux_steps/ustar_cp'

# Add the directory containing your MATLAB functions to the MATLAB path
matlab_function_path = os.path.join(current_dir, code_path)
Expand Down
Loading