@@ -3,7 +3,7 @@ requires = [
33 " setuptools>=46.4" ,
44 " setuptools_scm[toml]>=6.2" ,
55 " cmake>=3.13" ,
6- " wheel"
6+ " wheel" ,
77]
88build-backend = " setuptools.build_meta"
99
@@ -12,11 +12,11 @@ name = "pyhepmc"
1212description = " Pythonic interface to the HepMC3 C++ library licensed under LGPL-v3."
1313maintainers = [
1414 { name = " Hans Dembinski" },
15- 15+ 1616]
1717readme = " README.rst"
1818requires-python = " >=3.8"
19- license = {text = " BSD 3-Clause License" }
19+ license = { text = " BSD 3-Clause License" }
2020classifiers = [
2121 " Development Status :: 5 - Production/Stable" ,
2222 " License :: OSI Approved :: BSD License" ,
@@ -25,7 +25,7 @@ classifiers = [
2525 " Operating System :: MacOS" ,
2626 " Operating System :: Microsoft :: Windows" ,
2727 " Topic :: Scientific/Engineering" ,
28- " Intended Audience :: Developers"
28+ " Intended Audience :: Developers" ,
2929]
3030dependencies = [" numpy" ]
3131dynamic = [" version" ]
@@ -35,18 +35,8 @@ repository = "https://github.com/scikit-hep/pyhepmc"
3535documentation = " https://scikit-hep.org/pyhepmc"
3636
3737[project .optional-dependencies ]
38- test = [
39- " pytest" ,
40- " particle" ,
41- " matplotlib"
42- ]
43- doc = [
44- " sphinx" ,
45- " sphinx-rtd-theme" ,
46- " nbsphinx" ,
47- " ipython" ,
48- " ipykernel" ,
49- ]
38+ test = [" pytest" , " particle" , " matplotlib" ]
39+ doc = [" sphinx" , " sphinx-rtd-theme" , " nbsphinx" , " ipython" , " ipykernel" ]
5040
5141[tool .setuptools_scm ]
5242
@@ -75,8 +65,30 @@ source = ["pyhepmc"]
7565[tool .coverage .report ]
7666exclude_lines = [" pragma: no cover" ]
7767
78- [tool .pydocstyle ]
79- convention = " numpy"
68+ [tool .ruff ]
69+ src = [" src" ]
70+
71+ [tool .ruff .lint ]
72+ select = [
73+ " E" ,
74+ " F" , # flake8
75+ " D" , # pydocstyle
76+ ]
77+ unfixable = [
78+ " F841" , # Removes unused variables
79+ ]
80+ extend-ignore = [
81+ " D212" , # multi-line-summary-first-line
82+ ]
83+ pydocstyle.convention = " numpy"
84+
85+ [tool .ruff .lint .per-file-ignores ]
86+ "test_*.py" = [" B" , " D" ]
87+ "bench/*.py" = [" D" ]
88+ "docs/*.py" = [" D" ]
89+ "cmake_ext.py" = [" D" ]
90+ "generate_*.py" = [" D" ]
91+ "setup*.py" = [" D" ]
8092
8193[tool .cibuildwheel ]
8294# update skip when numpy wheels become available
0 commit comments