-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flake test and black code formatting (#10)
* Files formatting using black * Added ruff for flake tests * Added pre-commit hooks * Dropped support for Python 3.7
- Loading branch information
1 parent
c5fe695
commit 25c0ba1
Showing
11 changed files
with
430 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
__pycache__ | ||
__pycache__/ | ||
*.pyc | ||
dist/ | ||
.idea/ | ||
qrplatba.egg-info/ | ||
.*_cache/ |
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,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.11 | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.0.260' | ||
hooks: | ||
- id: ruff |
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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
[tool.poetry] | ||
name = "qrplatba" | ||
version = "1.0.0" | ||
version = "1.1.0" | ||
description = "QR platba SVG QR code and SPAYD string generator." | ||
authors = ["Viktor Stískala <[email protected]>"] | ||
repository = "https://github.com/ViktorStiskala/python-qrplatba" | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
|
@@ -20,18 +19,25 @@ license = "MIT" | |
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
python = "^3.8" | ||
qrcode = "^7.4" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.group.test] | ||
optional = true | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^7.2" | ||
pytest-github-actions-annotate-failures = "^0.1.8" | ||
ruff = "^0.0.261" | ||
black = "^23.3.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pre-commit = "^3.2.2" | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
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 +1,3 @@ | ||
from .spayd import QRPlatbaGenerator | ||
|
||
__all__ = ["QRPlatbaGenerator"] |
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.