From e5e08f7ee75c052916660f7b688f15b62fd84ffe Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Fri, 1 Dec 2023 11:39:46 -0600 Subject: [PATCH] switch to pre-commit --- .github/workflows/style-checks.yaml | 58 ----------------------------- .pre-commit-config.yaml | 4 ++ pyproject.toml | 7 +--- 3 files changed, 5 insertions(+), 64 deletions(-) delete mode 100644 .github/workflows/style-checks.yaml diff --git a/.github/workflows/style-checks.yaml b/.github/workflows/style-checks.yaml deleted file mode 100644 index 87cdba8..0000000 --- a/.github/workflows/style-checks.yaml +++ /dev/null @@ -1,58 +0,0 @@ -name: Style Checks -on: [pull_request] - -jobs: - flake8: - name: flake8 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: install - id: install - run : pip install -e .[lint] - - - name: check - id: flake8 - run: | - flake8 --version - flake8 aglio/ - black: - name: black - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: install - id: install - run : pip install -e .[lint] - - - name: check - id: black - run: | - black --version - black --check --diff aglio/ - isort: - name: isort - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: install - id: install - run : pip install -e .[lint] - - - name: check - id: isort - run: | - isort --version-number - isort . --check --diff diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8772db..5a8e95c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +ci: + autofix_prs: false + autoupdate_schedule: weekly + default_language_version: python: python3.10 diff --git a/pyproject.toml b/pyproject.toml index 9d6c745..4de7440 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "aglio" -version = "0.1.0" +version = "0.2.0" authors = [ { name="Chris Havlin", email="chris.havlin@gmail.com" }, ] @@ -49,8 +49,3 @@ extra = [ "yt_idv", "cartopy", ] -lint = [ - "black==22.8.0", - "isort==5.12.0", - "flake8==6.0.0" -]