Skip to content

Commit 61f3098

Browse files
committed
tox
1 parent 06f7162 commit 61f3098

File tree

3 files changed

+55
-11
lines changed

3 files changed

+55
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
rev: v3.3.1
2929
hooks:
3030
- id: pyupgrade
31-
args: [--py37-plus]
31+
args: [--py38-plus]
3232
- repo: https://github.com/boidolr/pre-commit-images
3333
rev: v1.1.0
3434
hooks:

README.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![PyPI Total Downloads](https://img.shields.io/badge/dynamic/json?style=for-the-badge&label=total%20downloads&query=%24.total_downloads&url=https%3A%2F%2Fapi.pepy.tech%2Fapi%2Fprojects%2Fblendmodes)](https://pepy.tech/project/blendmodes)
99
[![PyPI Version](https://img.shields.io/pypi/v/blendmodes.svg?style=for-the-badge)](https://pypi.org/project/blendmodes)
1010

11-
<!-- omit in TOC -->
11+
<!-- omit in toc -->
1212
# BlendModes
1313

1414
<img src="readme-assets/icons/name.png" alt="Project Icon" width="750">
@@ -53,6 +53,8 @@ editors
5353
- [How to run](#how-to-run)
5454
- [Windows](#windows)
5555
- [Linux/ MacOS](#linux-macos)
56+
- [Building](#building)
57+
- [Testing](#testing)
5658
- [Download Project](#download-project)
5759
- [Clone](#clone)
5860
- [Using The Command Line](#using-the-command-line)
@@ -95,8 +97,8 @@ Head to https://pypi.org/project/blendmodes/ for more info
9597

9698
### Built for
9799

98-
This program has been written for Python versions 3.7 - 3.10 and has been tested with both 3.7 and
99-
3.10
100+
This program has been written for Python versions 3.8 - 3.11 and has been tested with both 3.8 and
101+
3.11
100102

101103
## Install Python on Windows
102104

@@ -156,6 +158,36 @@ version.
156158
- File
157159
`python3.x [file]` or `./[file]`
158160

161+
## Building
162+
163+
This project uses https://github.com/FHPythonUtils/FHMake to automate most of the building. This
164+
command generates the documentation, updates the requirements.txt and builds the library artefacts
165+
166+
Note the functionality provided by fhmake can be approximated by the following
167+
168+
```sh
169+
handsdown --cleanup -o documentation/reference
170+
poetry export -f requirements.txt --output requirements.txt
171+
poetry export -f requirements.txt --with dev --output requirements_optional.txt
172+
poetry build
173+
```
174+
175+
`fhmake audit` can be run to perform additional checks
176+
177+
## Testing
178+
179+
For testing with the version of python used by poetry use
180+
181+
```sh
182+
poetry run pytest
183+
```
184+
185+
Alternatively use `tox` to run tests over python 3.8 - 3.11
186+
187+
```sh
188+
tox
189+
```
190+
159191
## Download Project
160192

161193
### Clone

pyproject.toml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ coverage = "^6.3.2"
3636

3737
[tool.black]
3838
line-length = 100
39-
target-version = ["py37"]
39+
target-version = ["py38"]
4040

4141
[tool.isort]
4242
profile = "black"
@@ -61,12 +61,24 @@ variable-naming-style = "camelCase"
6161
indent-string = "\t"
6262

6363
[tool.pylint.master]
64-
ignore-patterns = "test_.*?py"
64+
ignore-paths = ["tests"]
6565

6666
[tool.pylint.messages_control]
6767
enable = ["F", "E", "W", "R", "C"]
68-
disable = [
69-
"pointless-string-statement",
70-
"superfluous-parens",
71-
"bad-continuation"
72-
]
68+
disable = ["pointless-string-statement", "superfluous-parens"]
69+
70+
[tool.tox]
71+
legacy_tox_ini = """
72+
[tox]
73+
env_list =
74+
py311
75+
py310
76+
py39
77+
py38
78+
79+
[testenv]
80+
deps =
81+
imgcompare
82+
pytest
83+
commands = pytest tests
84+
"""

0 commit comments

Comments
 (0)