-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Code cleanup * Jars support * Support `invoiceId`, `counterEdrpou`, `counterIban` and `counterName` fields in statement * client_info() now returns object ClientInfo * flake8 -> Ruff * Travis -> Github Actions * Minor bug fixes
- Loading branch information
Showing
7 changed files
with
338 additions
and
106 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,41 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
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,149 @@ | ||
extend-select = [ | ||
# pyflakes, pycodestyle | ||
"F", "E", "W", | ||
|
||
# mmcabe | ||
"C90", | ||
|
||
# isort | ||
"I", | ||
|
||
# pep8-naming | ||
"N", | ||
|
||
# pyupgrade | ||
"UP", | ||
|
||
# flake8-2020 | ||
"YTT", | ||
|
||
# flake8-boolean-trap | ||
"FBT", | ||
|
||
# flake8-bugbear | ||
"B", | ||
|
||
# flake8-comprehensions | ||
"C4", | ||
|
||
# flake8-pie | ||
"PIE", | ||
|
||
# flake8-simplify | ||
"SIM", | ||
|
||
# flake8-tidy-imports | ||
"TID", | ||
|
||
# flake8-gettext | ||
"INT", | ||
|
||
# pygrep-hooks | ||
"PGH", | ||
|
||
# pylint | ||
"PLE", "PLW", | ||
|
||
# ruff | ||
"RUF", | ||
|
||
# flake8-bandit | ||
"S", | ||
|
||
# flake8-async | ||
"ASYNC", | ||
|
||
# flake8-slots | ||
"SLOT", | ||
|
||
# flake8-unused-arguments | ||
"ARG", | ||
|
||
# flake8-implicit-str-concat | ||
"ISC", | ||
|
||
# flake8-quotes | ||
"Q", | ||
|
||
# flake8-return | ||
"RET", | ||
|
||
# tryceratops | ||
"TRY", | ||
|
||
# flake8-logging-format | ||
"G", | ||
|
||
# flake8-no-pep420 | ||
"INP", | ||
|
||
# flake8-use-pathlib | ||
"PTH", | ||
|
||
# flake8-builtins | ||
"A", | ||
|
||
# flake8-executable | ||
"EXE", | ||
|
||
# flake8-fixme | ||
"FIX", | ||
|
||
# flake8-blind-except | ||
"BLE", | ||
|
||
# flake8-errmsg | ||
"EM", | ||
|
||
# flake8-raise | ||
"RSE", | ||
|
||
# flake8-self | ||
"SLF", | ||
|
||
# flake8-type-checking | ||
"TCH", | ||
|
||
# Perflint | ||
"PERF", | ||
|
||
# eradicate | ||
"ERA", | ||
|
||
# flake8-datetimez | ||
"DTZ", | ||
] | ||
|
||
extend-ignore = [ | ||
# Allow zip() without strict= | ||
"B905", | ||
|
||
# No line length errors | ||
"E501", | ||
|
||
# Ambiguous unicode character string | ||
"RUF001", | ||
] | ||
|
||
exclude = ["monobankua/__init__.py"] | ||
|
||
fix = true | ||
show-fixes = true | ||
target-version = "py310" | ||
line-length = 120 | ||
|
||
[isort] | ||
combine-as-imports = true | ||
lines-after-imports = 2 | ||
|
||
[mccabe] | ||
max-complexity = 15 | ||
|
||
[pep8-naming] | ||
extend-ignore-names = ["displayName", "isOwner", "isShared", "wellknownListName", "completedDateTime", "createdDateTime", "dueDateTime", "hasAttachments", "isReminderOn", "lastModifiedDateTime", "reminderDateTime", "startDateTime"] | ||
|
||
[flake8-quotes] | ||
docstring-quotes = "single" | ||
inline-quotes = "single" | ||
multiline-quotes = "single" | ||
|
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
Oops, something went wrong.