Skip to content

Commit

Permalink
update pyproject and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Jun 25, 2023
1 parent 29694f7 commit 79cdb6b
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 24 deletions.
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![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%2Fpylsr)](https://pepy.tech/project/pylsr)
[![PyPI Version](https://img.shields.io/pypi/v/pylsr.svg?style=for-the-badge)](https://pypi.org/project/pylsr)

<!-- omit in TOC -->
<!-- omit in toc -->
# PyLSR

<img src="readme-assets/icons/name.png" alt="Project Icon" width="750">
Expand All @@ -35,6 +35,8 @@ https://developer.apple.com/library/archive/documentation/Xcode/Reference/xcode_
- [How to run](#how-to-run)
- [Windows](#windows)
- [Linux/ MacOS](#linux-macos)
- [Building](#building)
- [Testing](#testing)
- [Download Project](#download-project)
- [Clone](#clone)
- [Using The Command Line](#using-the-command-line)
Expand Down Expand Up @@ -98,8 +100,8 @@ Head to https://pypi.org/project/pylsr/ for more info

### Built for

This program has been written for Python versions 3.7 - 3.10 and has been tested with both 3.7 and
3.10
This program has been written for Python versions 3.8 - 3.11 and has been tested with both 3.8 and
3.11

## Install Python on Windows

Expand Down Expand Up @@ -159,6 +161,36 @@ version.
- File
`python3.x [file]` or `./[file]`

## Building

This project uses https://github.com/FHPythonUtils/FHMake to automate most of the building. This
command generates the documentation, updates the requirements.txt and builds the library artefacts

Note the functionality provided by fhmake can be approximated by the following

```sh
handsdown --cleanup -o documentation/reference
poetry export -f requirements.txt --output requirements.txt
poetry export -f requirements.txt --with dev --output requirements_optional.txt
poetry build
```

`fhmake audit` can be run to perform additional checks

## Testing

For testing with the version of python used by poetry use

```sh
poetry run pytest
```

Alternatively use `tox` to run tests over python 3.8 - 3.11

```sh
tox
```

## Download Project

### Clone
Expand Down
54 changes: 33 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
"Topic :: Utilities",
]
homepage = "https://github.com/FHPythonUtils/PyLSR"
repository = "https://github.com/FHPythonUtils/PyLSR"
Expand All @@ -33,6 +33,22 @@ pylint = "^2.13.5"
handsdown = "^1.1.0"
coverage = "^6.3.2"

[tool.black]
line-length = 100
target-version = ["py38"]

[tool.isort]
profile = "black"
indent = "Tab"

[tool.pydocstyle]
convention = "google"
ignore = "D205,D415"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pylint.basic]
argument-naming-style = "camelCase"
attr-naming-style = "camelCase"
Expand All @@ -44,28 +60,24 @@ variable-naming-style = "camelCase"
indent-string = "\t"

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

[tool.pylint.messages_control]
enable = ["F", "E", "W", "R", "C"]
disable = [
"pointless-string-statement",
"superfluous-parens",
"bad-continuation"
]

[tool.black]
line-length = 100
target-version = ["py37"]

[tool.isort]
profile = "black"
indent = "Tab"
disable = ["pointless-string-statement", "superfluous-parens"]

[tool.pydocstyle]
convention = "google"
ignore = "D205,D415"
[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py311
py310
py39
py38
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[testenv]
deps =
pytest
imgcompare
commands = pytest tests
"""
Binary file modified tests/data/pull4copy.lsr
Binary file not shown.
Binary file modified tests/data/test1copy.lsr
Binary file not shown.
Binary file modified tests/data/test3copy.lsr
Binary file not shown.

0 comments on commit 79cdb6b

Please sign in to comment.