diff --git a/.github/dependabot.yml b/.github/dependabot.yaml similarity index 100% rename from .github/dependabot.yml rename to .github/dependabot.yaml diff --git a/.github/workflows/binder.yml b/.github/workflows/binder.yaml similarity index 100% rename from .github/workflows/binder.yml rename to .github/workflows/binder.yaml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yaml similarity index 100% rename from .github/workflows/build-test.yml rename to .github/workflows/build-test.yaml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yaml similarity index 100% rename from .github/workflows/docker.yml rename to .github/workflows/docker.yaml diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yaml similarity index 100% rename from .github/workflows/semantic-pr-title.yml rename to .github/workflows/semantic-pr-title.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d84fba6..49f30d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,27 +49,27 @@ repos: additional_dependencies: [pyyaml] - repo: https://github.com/adamchainz/blacken-docs - rev: "1.16.0" + rev: 1.16.0 hooks: - id: blacken-docs additional_dependencies: [black==23.*] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: v3.1.0 hooks: - id: prettier - types_or: [yaml, markdown, html, css, scss, javascript, json] + types_or: [yaml, toml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/codespell-project/codespell - rev: "v2.2.6" + rev: v2.2.6 hooks: - id: codespell exclude: ^Gemfile\.lock$ - args: ["-Lnd", "-w"] + args: [-Lnd, -w] - repo: https://github.com/pre-commit/pygrep-hooks - rev: "v1.10.0" + rev: v1.10.0 hooks: - id: rst-backticks - id: rst-directive-colons diff --git a/README.md b/README.md index e9eb17a..2c1f596 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Geant4 Python Application [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lobis/geant4-python-application/HEAD) -[![Build and Test](https://github.com/lobis/geant4-python-application/actions/workflows/build-test.yml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/test.yml) -[![Docker Image](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yml) +[![Build and Test](https://github.com/lobis/geant4-python-application/actions/workflows/build-test.yaml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/test.yaml) +[![Docker Image](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yaml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yaml) ```python from geant4_python_application import Application, basic_gdml diff --git a/pyproject.toml b/pyproject.toml index e0b46d0..1359bcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,51 +3,54 @@ build-backend = "scikit_build_core.build" requires = ["scikit-build-core>=0.3.3", "pybind11"] [project] -version = "0.0.1" -name = "geant4_python_application" -description = "Geant4 Python Application" -readme = "README.md" -requires-python = ">=3.9" - authors = [ - {name = "Luis Antonio Obis Aparicio", email = "luis.antonio.obis@gmail.com"}, + {name = "Luis Antonio Obis Aparicio", email = "luis.antonio.obis@gmail.com"} ] classifiers = [ - "Intended Audience :: Developers", - "Intended Audience :: Information Technology", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: BSD License", - "Operating System :: MacOS", - "Operating System :: POSIX", - "Operating System :: Unix", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Topic :: Scientific/Engineering", - "Topic :: Scientific/Engineering :: Information Analysis", - "Topic :: Scientific/Engineering :: Mathematics", - "Topic :: Scientific/Engineering :: Physics", - "Topic :: Software Development", - "Topic :: Utilities" + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Operating System :: MacOS", + "Operating System :: POSIX", + "Operating System :: Unix", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Information Analysis", + "Topic :: Scientific/Engineering :: Mathematics", + "Topic :: Scientific/Engineering :: Physics", + "Topic :: Software Development", + "Topic :: Utilities" ] - dependencies = [ - "awkward", - "numpy", + "awkward", + "numpy" ] +description = "Geant4 Python Application" +name = "geant4_python_application" +readme = "README.md" +requires-python = ">=3.9" +version = "0.0.1" [project.optional-dependencies] dev = [ - "boost_histogram", - "hist", - "pandas", - "awkward-pandas" + "boost_histogram", + "hist", + "pandas", + "awkward-pandas" +] +test = [ + "pytest", + "pytest-xdist", + "pytest-timeout", + "pytest-rerunfailures" ] -test = ["pytest"] [tool.cibuildwheel] build-verbosity = 1 @@ -58,7 +61,7 @@ test-skip = ["*universal2:arm64"] [tool.pytest.ini_options] addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"] filterwarnings = [ - "error" + "error" ] log_cli_level = "INFO" minversion = "6.0" @@ -70,31 +73,31 @@ src = ["src"] [tool.ruff.lint] extend-select = [ - "B", # flake8-bugbear - "I", # isort - "ARG", # flake8-unused-arguments - "C4", # flake8-comprehensions - "EM", # flake8-errmsg - "ICN", # flake8-import-conventions - "G", # flake8-logging-format - "PGH", # pygrep-hooks - "PIE", # flake8-pie - "PL", # pylint - "PT", # flake8-pytest-style - "PTH", # flake8-use-pathlib - "RET", # flake8-return - "RUF", # Ruff-specific - "SIM", # flake8-simplify - "T20", # flake8-print - "UP", # pyupgrade - "YTT", # flake8-2020 - "EXE", # flake8-executable - "NPY", # NumPy specific rules - "PD" # pandas-vet + "B", # flake8-bugbear + "I", # isort + "ARG", # flake8-unused-arguments + "C4", # flake8-comprehensions + "EM", # flake8-errmsg + "ICN", # flake8-import-conventions + "G", # flake8-logging-format + "PGH", # pygrep-hooks + "PIE", # flake8-pie + "PL", # pylint + "PT", # flake8-pytest-style + "PTH", # flake8-use-pathlib + "RET", # flake8-return + "RUF", # Ruff-specific + "SIM", # flake8-simplify + "T20", # flake8-print + "UP", # pyupgrade + "YTT", # flake8-2020 + "EXE", # flake8-executable + "NPY", # NumPy specific rules + "PD" # pandas-vet ] ignore = [ - "PLR09", # Too many X - "PLR2004" # Magic comparison + "PLR09", # Too many X + "PLR2004" # Magic comparison ] isort.required-imports = ["from __future__ import annotations"]