Skip to content

Commit a6ef37a

Browse files
henryiiiandrzejnovak
authored andcommitted
style: setup.cfg formatting, Python 3.10 testing
1 parent 5990a00 commit a6ef37a

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
strategy:
1818
matrix:
1919
runs-on: [ubuntu-latest]
20-
python-version: [3.7, 3.8, 3.9]
20+
python-version: ["3.7", "3.8", "3.10"]
2121
include:
2222
- runs-on: macOS-latest
23-
python-version: 3.7
23+
python-version: "3.7"
2424
- runs-on: macOS-latest
25-
python-version: 3.9
25+
python-version: "3.9"
2626

2727
steps:
2828
- uses: actions/checkout@master

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ repos:
1616
- id: requirements-txt-fixer
1717
- id: trailing-whitespace
1818

19+
- repo: https://github.com/asottile/setup-cfg-fmt
20+
rev: "v1.20.0"
21+
hooks:
22+
- id: setup-cfg-fmt
23+
1924
- repo: https://github.com/PyCQA/isort
2025
rev: 5.10.1
2126
hooks:

setup.cfg

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
[metadata]
22
name = mplhep
3-
# version = file: src/mplhep/.VERSION
3+
description = Matplotlib styles for HEP
44
long_description = file: README.md
55
long_description_content_type = text/markdown
6+
url = https://github.com/scikit-hep/mplhep
67
author = andrzejnovak
78
author_email = "[email protected]"
89
maintainer = Scikit-HEP
910
maintainer_email = [email protected]
10-
license = MIT License
11-
description = Matplotlib styles for HEP
12-
url = https://github.com/scikit-hep/mplhep
11+
license = MIT
12+
license_file = LICENSE
1313
classifiers =
14+
Framework :: Matplotlib
1415
Intended Audience :: Science/Research
1516
License :: OSI Approved :: MIT License
16-
Framework :: Matplotlib
17+
Programming Language :: Python :: 3
1718
Programming Language :: Python :: 3 :: Only
1819
Programming Language :: Python :: 3.7
1920
Programming Language :: Python :: 3.8
2021
Programming Language :: Python :: 3.9
22+
Programming Language :: Python :: 3.10
2123
Topic :: Scientific/Engineering :: Physics
2224

23-
2425
[options]
25-
zip_safe = False
26-
python_requires = >=3.7
27-
package_dir =
28-
=src
2926
packages = find:
30-
include_package_data = True
3127
install_requires =
32-
mplhep_data
3328
matplotlib>=3.4
29+
mplhep-data
3430
numpy>=1.16.0
3531
packaging
3632
uhi>=0.2.0
33+
python_requires = >=3.7
34+
include_package_data = True
35+
package_dir =
36+
=src
37+
zip_safe = False
3738

3839
[options.packages.find]
3940
where = src
4041

41-
4242
[flake8]
4343
select = B,C,E,F,W,T4,B9
4444
extend-ignore = B950, W503, E501, E203

0 commit comments

Comments
 (0)