Skip to content

Commit

Permalink
Merge branch 'topic/bbannier/pyproject-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Jul 31, 2024
2 parents 989c751 + c31e6a4 commit 8e8a51a
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 157 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/btest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
Run-BTest:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
Test-SetupPY:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand Down
14 changes: 4 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,28 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: examples/|testing/tests/.*\.sh

- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.4.3.1
rev: v3.7.0.1
hooks:
- id: shfmt
exclude: examples/t6.sh
args: ["-w", "-i", "4", "-ci"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: ^testing/Baseline
- id: end-of-file-fixer
exclude: ^testing/Baseline|examples/.*Baseline.*

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.5.5
hooks:
- id: ruff
args: [--fix]
Expand Down
28 changes: 28 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
1.1-17 | 2024-07-31 14:15:38 +0200

* ci: Drop python-3.7, add python-3.12 (Benjamin Bannier, Corelight)

Even though python-3.7 remains our minimal Python version it is not
support by GH actions anymore so this commit drops it from CI. We also
add a setup for the now released python-3.12.

* Activate flake8-implicit-str-concat linter (Benjamin Bannier, Corelight)

* Activate isort linter (Benjamin Bannier, Corelight)

* Activate pyflakes linter (Benjamin Bannier, Corelight)

We previously linted with flake8 so this contains no code changes.

* Active linter for style around comprehensions (Benjamin Bannier, Corelight)

* Use ruff for pyupgrade functionality (Benjamin Bannier, Corelight)

* Move project configuration to `pyproject.toml` (Benjamin Bannier, Corelight)

This centralizes most project configuration from `setup.py` and
`setup.cfg` into the existing `pyproject.toml` so it can be picked up by
more tools.

* Bump pre-commit hooks (Benjamin Bannier, Corelight)

1.1-8 | 2024-04-10 09:35:28 -0700

* Standardize on ruff for python formatting/linting via pre-commits (Tim Wojtulewicz, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
..
.. Version number is filled in automatically.

.. |version| replace:: 1.1-8
.. |version| replace:: 1.1-17

==================================================
BTest - A Generic Driver for Powerful System Tests
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1-8
1.1-17
Loading

0 comments on commit 8e8a51a

Please sign in to comment.