Skip to content

Commit

Permalink
pyproject.toml, ruff, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
arnobaer committed Sep 16, 2024
1 parent 1ee571c commit 9498356
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 73 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel flake8 pylint pytest
pip install tox
pip install -e .
- name: Lint with flake8
- name: Test with tox
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pylint -E src
- name: Test with pytest
run: |
pytest
tox -epy
- name: Run application
run: |
python -m sqc --version
6 changes: 6 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.11.0] - 2024-09-16

### Changed
- Switched to pyproject.toml config.
- Switched to ruff linter.

## [0.10.2] - 2024-04-26

### Fixed
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
[project]
name = "sqc"
description = "Sensor Quality Control"
readme = "README.md"
authors = [
{name = "Bernhard Arnold", email = "bernhard.arnold@oeaw.ac.at"},
]
requires-python = ">=3.9"
dependencies = [
"comet @ git+https://github.com/hephy-dd/comet.git@main",
"PyQt5==5.15.10",
"PyQtChart==5.15.6",
"PyYAML==6.0.1",
"numpy==1.26.4",
"scipy==1.12.0",
"schema==0.7.5",
"pyueye==4.95.0",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/hephy-dd/sqc"
Documentation = "https://hephy-dd.github.io/sqc/"

[project.scripts]
sqc = "sqc.__main__:main"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
"sqc.assets.icons" = ["*.svg", "*.png", "*.ico"]
56 changes: 0 additions & 56 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion src/sqc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.2"
__version__ = "0.11.0"
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ skip_missing_interpreters = true

[testenv]
deps =
flake8
pylint
ruff
mypy
types-PyYAML
PyQt5-stubs
pytest
commands =
flake8 src --select=E9,F63,F7,F82
pylint -E src
ruff check src --select=E9,F63,F7,F82
mypy src
pytest

0 comments on commit 9498356

Please sign in to comment.