Skip to content

Commit f3542b5

Browse files
authored
Merge pull request #376 from pymzml/feature/move_to_pyproject_toml
move to pyproject.toml
2 parents 9ab9315 + 1ab1290 commit f3542b5

26 files changed

+271
-285
lines changed

.github/auto_assign.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ addReviewers: true
22
addAssignees: true
33
reviewers:
44
- MKoesters
5-
65
skipKeywords:
76
- wip
87
- WIP
9-
108
numberOfReviewers: 0

.github/workflows/cd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Publish to pypi
2-
32
on:
43
push:
54
tags:

.github/workflows/sphinx.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# For reference: https://github.com/JamesIves/github-pages-deploy-action
22
name: Build Sphinx docu.
3-
43
on:
54
release:
65
types: [published]
@@ -12,14 +11,12 @@ jobs:
1211
steps:
1312
- name: Checkout
1413
uses: actions/checkout@v4
15-
1614
- name: Install and Build HTML
1715
run: |
1816
pip install --upgrade pip
1917
pip install -r docs/requirements.txt
2018
pip install ".[full]"
2119
sphinx-build ./docs/source ./docs/build
22-
2320
- name: Deploy HTML
2421
uses: JamesIves/github-pages-deploy-action@v4
2522
with:

.github/workflows/tox_ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Continious Integration
2-
3-
on:
4-
pull_request
5-
2+
on: pull_request
63
jobs:
74
black:
85
runs-on: ubuntu-latest
@@ -16,7 +13,6 @@ jobs:
1613
run: pip install "black<23"
1714
- name: run black
1815
run: black --check pymzml
19-
2016
build:
2117
runs-on: ubuntu-latest
2218
strategy:

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.0.1
44
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
7-
- id: check-yaml
8-
- id: debug-statements
9-
- repo: https://github.com/ambv/black
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: debug-statements
9+
- repo: https://github.com/ambv/black
1010
rev: 18.9b0
1111
hooks:
12-
- id: black
13-
language_version: python
14-
exclude: ^docs/, ^tests/
12+
- id: black
13+
language_version: python
14+
exclude: ^docs/, ^tests/

.readthedocs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# Required
55
version: 2
6-
76
# Set the OS, Python version and other tools you might need
87
build:
98
os: ubuntu-22.04
@@ -13,15 +12,13 @@ build:
1312
# nodejs: "20"
1413
# rust: "1.70"
1514
# golang: "1.20"
16-
1715
# Build documentation in the "docs/" directory with Sphinx
1816
sphinx:
1917
configuration: docs/source/conf.py
2018
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
2119
# builder: "dirhtml"
2220
# Fail on all warnings to avoid broken references
2321
# fail_on_warning: true
24-
2522
# Optionally build your docs in additional formats such as PDF and ePub
2623
# formats:
2724
# - pdf
@@ -31,5 +28,5 @@ sphinx:
3128
# to build your documentation
3229
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
3330
python:
34-
install:
35-
- requirements: docs/requirements.txt
31+
install:
32+
- requirements: docs/requirements.txt

codecov.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ coverage:
55
precision: 2
66
round: down
77
range: "70...100"
8-
98
status:
109
project: yes
1110
patch: yes
1211
changes: no
13-
1412
parsers:
1513
gcov:
1614
branch_detection:
@@ -19,9 +17,7 @@ parsers:
1917
method: False
2018
changes: False
2119
macro: False
22-
2320
comment:
2421
layout: "head, diff"
2522
behaviour: default
2623
require_change: no
27-

docs/parse_example_scripts.py

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
11
#!/usr/bin/env python3
22
# encoding: utf-8
33

4-
'''
4+
"""
55
66
Originally created for Ursgal ( https://github.com/ursgal/ursgal )
77
88
9-
'''
9+
"""
1010

1111
import glob
1212
import os
1313

14-
if __name__ == '__main__':
15-
print('''
14+
if __name__ == "__main__":
15+
print(
16+
"""
1617
Formatting example scripts into rst files for the docs
17-
''')
18+
"""
19+
)
1820
# input()
1921
example_script_path = os.path.join(
2022
os.path.dirname(__file__),
2123
os.pardir,
22-
'example_scripts',
23-
'*.py',
24+
"example_scripts",
25+
"*.py",
2426
)
2527
print(example_script_path)
2628
for example_script in glob.glob(example_script_path):
2729
if os.path.exists(example_script) is False:
2830
continue
2931
basename = os.path.basename(example_script)
30-
print(
31-
'Reading: {0}'.format(example_script)
32-
)
32+
print("Reading: {0}".format(example_script))
3333
file_path = os.path.join(
3434
os.path.dirname(__file__),
35-
'source',
36-
'code_inc',
37-
'{0}',
35+
"source",
36+
"code_inc",
37+
"{0}",
3838
)
39-
with open( file_path.format( basename.replace('.py', '.inc')), 'w') as o:
40-
print('''.. code-block:: python\n''', file=o)
41-
with open( example_script ) as infile:
39+
with open(file_path.format(basename.replace(".py", ".inc")), "w") as o:
40+
print(""".. code-block:: python\n""", file=o)
41+
with open(example_script) as infile:
4242
for line in infile:
43-
print('\t{0}'.format( line.rstrip()), file=o)
44-
45-
43+
print("\t{0}".format(line.rstrip()), file=o)

docs/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)