From 0280da2ccbbabb2ec59067bc7231bcc56c87d691 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Fri, 21 Jun 2024 20:55:28 -0400 Subject: [PATCH] chore(dependencies): unpin numpy, remove pull_request_prepare.py --- .github/workflows/release.yml | 5 ++++- pyproject.toml | 2 +- scripts/pull_request_prepare.py | 22 ---------------------- 3 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 scripts/pull_request_prepare.py diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef2c08d..cf17652 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,8 +83,11 @@ jobs: name: changelog path: CHANGELOG.md + - name: Lint Python files + run: ruff check . + - name: Format Python files - run: python scripts/pull_request_prepare.py + run: ruff format . - name: Push release branch env: diff --git a/pyproject.toml b/pyproject.toml index 02159c9..4921bb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ classifiers = [ ] requires-python = ">=3.9" dependencies = [ - "numpy<2.0.0", + "numpy", "pandas", "xmipy", ] diff --git a/scripts/pull_request_prepare.py b/scripts/pull_request_prepare.py deleted file mode 100644 index 909a25d..0000000 --- a/scripts/pull_request_prepare.py +++ /dev/null @@ -1,22 +0,0 @@ -import os - -try: - import isort - - print(f"isort version: {isort.__version__}") -except ModuleNotFoundError: - print("isort not installed\n\tInstall using pip install isort") - -try: - import black - - print(f"black version: {black.__version__}") -except ModuleNotFoundError: - print("black not installed\n\tInstall using pip install black") - -# uncomment if/when isort used -# print("running isort...") -# os.system("isort -v ../modflowapi") - -print("running black...") -os.system("black -v ../modflowapi")