forked from kedder/ofxstatement
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
Merging upstream rather than rebasing.
- Loading branch information
Showing
32 changed files
with
2,124 additions
and
456 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "saturday" | ||
time: "03:00" | ||
open-pull-requests-limit: 10 |
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,57 @@ | ||
name: ofxstatement | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv coveralls | ||
pipenv sync --dev | ||
- name: Test with pytest | ||
run: | | ||
pipenv run pytest -v --cov src/ofxstatement | ||
- name: Check with mypy | ||
run: | | ||
pipenv run mypy src | ||
- name: Check with black | ||
run: | | ||
pipenv run black --check setup.py src | ||
- name: Coveralls | ||
if: ${{ success() }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}} | ||
COVERALLS_PARALLEL: true | ||
run: | | ||
coveralls --service=github | ||
report: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Coveralls Finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}} | ||
run: | | ||
pip install coveralls | ||
coveralls --service=github --finish |
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
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,3 +1,4 @@ | ||
include CHANGES.rst README.rst | ||
include src/ofxstatement/plugins/README.txt | ||
include src/ofxstatement/py.typed | ||
graft src/ofxstatement/tests/samples |
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,29 +1,18 @@ | ||
VENV=$(abspath .venv) | ||
PIP=$(VENV)/bin/pip | ||
|
||
all: bin/ofxstatement bin/pytest | ||
|
||
$(VENV): | ||
virtualenv -p python3 --no-site-packages $(VENV) | ||
|
||
bin: | ||
mkdir $@ | ||
|
||
bin/ofxstatement: $(VENV)/bin/ofxstatement | bin | ||
ln -sf $(VENV)/bin/ofxstatement $@ | ||
touch $@ | ||
|
||
bin/pytest: $(VENV)/bin/ofxstatement | bin | ||
ln -sf $(VENV)/bin/pytest $@ | ||
touch $@ | ||
|
||
$(VENV)/bin/ofxstatement: $(VENV) setup.py | ||
$(PIP) install --editable .[test] | ||
all: test mypy black | ||
|
||
PHONY: test | ||
test: bin/pytest | ||
bin/pytest | ||
test: | ||
pytest | ||
|
||
PHONY: coverage | ||
coverage: bin/pytest | ||
./bin/pytest --cov src/ofxstatement | ||
pytest --cov src/ofxstatement | ||
|
||
.PHONY: black | ||
black: | ||
black setup.py src | ||
|
||
.PHONY: mypy | ||
mypy: | ||
mypy src | ||
|
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,19 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
pytest-cov = "*" | ||
black = "*" | ||
mypy = "*" | ||
exceptiongroup = {markers="python_version < '3.11'"} | ||
tomli = {markers="python_version < '3.11'"} | ||
types-appdirs = "*" | ||
|
||
[packages] | ||
ofxstatement = {editable = true,path = "."} | ||
exceptiongroup = "*" | ||
importlib_metadata = {version = ">=3.8", markers="python_version < '3.10'"} | ||
zipp = {version = ">=3.8", markers="python_version < '3.10'"} |
Oops, something went wrong.