diff --git a/.github/workflows/fmu-config.yml b/.github/workflows/fmu-config.yml index f9738a8..13efd50 100644 --- a/.github/workflows/fmu-config.yml +++ b/.github/workflows/fmu-config.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout commit locally @@ -64,7 +64,7 @@ jobs: run: sphinx-build -b html docs build/docs/html - name: Update GitHub pages - if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/main' && matrix.python-version == '3.8' + if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/main' && matrix.python-version == '3.11' run: | cp -R ./build/docs/html ../html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 813629b..e9d1d1d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,7 +57,7 @@ It is very important to be complient to code standards. fmu-config uses - Start with documentation and tests. Think and communicate first! - Docstrings shall start and end with """ and use Google style. - Use pytest as testing engine -- Code shall be be Python 3.8+ compliant +- Code shall be be Python 3.9+ compliant ### Linting diff --git a/README.md b/README.md index 518c1f7..73d60d7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # fmu-config ![fmu-config](https://github.com/equinor/fmu-config/workflows/fmu-config/badge.svg) -![Python Version](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12-blue.svg) +![Python Version](https://img.shields.io/badge/python-3.9%20|%203.10%20|%203.11%20|%203.12-blue.svg) [![License: LGPL v3](https://img.shields.io/github/license/equinor/fmu-tools)](https://www.gnu.org/licenses/lgpl-3.0) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![PyPI](https://img.shields.io/pypi/v/fmu-config.svg)](https://pypi.org/project/fmu-config/) diff --git a/pyproject.toml b/pyproject.toml index 377be48..24a9e56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ write_to = "src/fmu/config/version.py" name = "fmu-config" description = "Library for various config scripts in FMU scopes" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" license = { file = "LICENSE" } authors = [ { name = "Equinor", email = "jriv@equinor.com" }, @@ -23,7 +23,6 @@ classifiers = [ "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -61,7 +60,7 @@ disallow_untyped_defs = true exclude = "^((tests|docs|examples|build|tools)/|conftest.py?)" extra_checks = true ignore_missing_imports = true -python_version = 3.8 +python_version = 3.11 strict_equality = true warn_redundant_casts = true warn_unused_configs = true @@ -95,19 +94,21 @@ ignore = [ "C901", ] select = [ - "B", - "C", - "E", - "F", - "I", - "PIE", - "Q", - "RET", - "RSE", - "SIM", - "W", - "TCH", - "TID", + "B", # flake-8-bugbear + "C", # pylint-convention + "E", # pycodestyle-error + "F", # pyflakes + "I", # isort + "NPY", # numpy + "PIE", # flake8-pie + "Q", # flake8-quotes + "RET", # flake8-return + "RSE", # flake8-raise + "SIM", # flake8-simplify + "TCH", # flake8-type-checking + "TID", # flake8-tidy-imports + # "UP", # pyupgrade + "W", # pylint-warnings ] [tool.ruff.lint.isort]