-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [fix] pypi * [wf] revert workflow changes * pyproject.toml * test_lint workflow * Fix test_lint * Fix test_lint * Fix test_lint * Fix test_lint * Fix test_lint * Fix test_lint * Remove lint optional dependencies * __version__ Drop end-of-life Python 3.7 to avoid having to backbort importlib.metadata * Actually drop Python 3.8 * codescanner workflow * Attempt to debug codescanner workflow * Attempt failed * create_release workflow --------- Co-authored-by: grindsa <grindelsack@gmail.com>
- Loading branch information
1 parent
d3d47fd
commit b37dd76
Showing
9 changed files
with
186 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Test and lint | ||
on: | ||
push: | ||
pull_request: | ||
branches: [ devel ] | ||
schedule: | ||
- cron: '0 2 * * 6' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Keep in sync with the Python Trove classifiers in pyproject.toml. | ||
python_version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | ||
name: Test with Python (${{ matrix.python_version }}) | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python_version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
allow-prereleases: true | ||
|
||
- name: Install package | ||
run: python -m pip install .[test] | ||
|
||
- name: Run tests | ||
run: python3 -m pytest | ||
|
||
# - name: Upload coverage reports to Codecov | ||
# uses: codecov/codecov-action@v4.5.0 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# flags: unittests | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install linters | ||
run: python3 -m pip install pylint pylint-exit pycodestyle | ||
|
||
- name: Lint with pylint | ||
run: | | ||
pylint --rcfile=".github/pylintrc" dkb_robo/ || pylint-exit $? | ||
- name: Lint with pycodestyle | ||
run: | | ||
pycodestyle --max-line-length=380 dkb_robo/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
""" init """ | ||
"""init""" | ||
|
||
from importlib.metadata import version | ||
|
||
from .dkb_robo import DKBRobo, DKBRoboError | ||
|
||
__author__ = 'GrindSa' | ||
__author__ = "GrindSa" | ||
__version__ = version("dkb_robo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[project] | ||
authors = [{ name = "grindsa", email = "grindelsack@gmail.com" }] | ||
name = "dkb_robo" | ||
description = "Download transactions from the website of Deutsche Kreditbak AG" | ||
keywords = ["Deutsche Kreditbank", "DKB"] | ||
version = "0.27" | ||
readme = "README.md" | ||
classifiers = [ | ||
# Keep in sync with the Python version matrix in test_lint.yaml GitHub workflow. | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Development Status :: 4 - Beta", | ||
"Natural Language :: German", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">= 3.8" | ||
dependencies = [ | ||
"bs4", | ||
"mechanicalsoup", | ||
"requests", | ||
"pillow", | ||
"tabulate", | ||
"click", | ||
] | ||
optional-dependencies.test = ["pytest", "pytest-cov", "html5lib"] | ||
optional-dependencies.dev = ["build", "dkb_robo[test]"] | ||
scripts = { dkb = "dkb_robo.cli:main" } | ||
|
||
[project.urls] | ||
Repository = "https://github.com/grindsa/dkb-robo" | ||
Issues = "https://github.com/grindsa/dkb-robo/issues" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch] | ||
build.targets.sdist.only-packages = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"-ra", | ||
"--cov=dkb_robo", | ||
"--import-mode=importlib", | ||
"--strict-config", | ||
"--strict-markers", | ||
] | ||
filterwarnings = ["error"] | ||
log_cli_level = "INFO" | ||
minversion = "7" | ||
xfail_strict = true | ||
testpaths = ["test"] |
Oops, something went wrong.