Skip to content

Commit

Permalink
missing pytest packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 1, 2023
1 parent cc4d9e7 commit 6ef8818
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 67 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
121 changes: 62 additions & 59 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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"]

Expand Down

0 comments on commit 6ef8818

Please sign in to comment.