Skip to content

Commit 7029711

Browse files
authored
Merge pull request #78 from fuzzylite/feature/improvements
Version 8.0.3
2 parents 0fc7c57 + c843f52 commit 7029711

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+615
-1036
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424

2525
- name: Install requirements
26-
run: pip install -r requirements.txt
26+
run: pip install -r requirements-dev.txt
2727

2828
- name: Check
2929
run: nox -e check

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python-version: "3.9"
3030

3131
- name: Install requirements
32-
run: pip install -r requirements.txt
32+
run: pip install -r requirements-dev.txt
3333

3434
- name: Build
3535
run: poetry build

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424

2525
- name: Install requirements
26-
run: pip install -r requirements.txt
26+
run: pip install -r requirements-dev.txt
2727

2828
- name: Check
2929
run: nox -e check

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors:
1111
- given-names: Juan
1212
family-names: Rada-Vilela
1313
14-
affiliation: FuzzyLite Limited
14+
affiliation: FuzzyLite
1515
repository-code: 'https://github.com/fuzzylite/pyfuzzylite'
1616
url: 'https://fuzzylite.com'
1717
abstract: >-

COPYRIGHT

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pyfuzzylite: a fuzzy logic control library in Python.
2+
3+
fuzzylite is a registered trademark of FuzzyLite.
4+
pyfuzzylite, jfuzzylite and QtFuzzyLite are trademarks of FuzzyLite.
5+
6+
Copyright (C) 2010-2024 FuzzyLite by Juan Rada-Vilela. All rights reserved.

HISTORY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# Version 8.0.3
2+
3+
- Renamed `requirements.txt` to `requirements-dev.txt`
4+
- Added `__author__`, `__copyright__` and `__license__` to `fuzzylite.__init__.py` and `fuzzylite.library.information`
5+
- Removed `Limited` in `FuzzyLite Limited` everywhere, eg, `fuzzylite.information.company = "FuzzyLite"`
6+
- `RuleBlock`: Added `RuleBlock.rule(int)` to get rule by index
7+
- `Function`: Unary functions can be defined in either left or right nodes
8+
- Upgraded dependencies: `nox`, `poetry`, `mypy`, `pyright`, `black`, `ruff`
9+
- Improved tests
10+
- Shortened preamble in every file
11+
112
# Version 8.0.2
213

314
### Bug fixes

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
# pyfuzzylite 8.0.2
2-
3-
<img src="https://fuzzylite.github.io/pyfuzzylite/image/fuzzylite.svg" align="left" alt="fuzzylite">
4-
5-
## A Fuzzy Logic Control Library in Python
6-
7-
by [**Juan Rada-Vilela, PhD**](https://fuzzylite.com/about)
8-
9-
<br>
10-
<br>
1+
<div align="center">
2+
<img src="/fuzzylite.png" alt="fuzzylite" width="10%">
3+
<h1>pyfuzzylite 8.0.3</h1>
4+
<h2>A Fuzzy Logic Control Library in Python</h2>
5+
<h3>by <a href="https://fuzzylite.com/about"><b>Juan Rada-Vilela, PhD</b></a></h3>
116

127
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://opensource.org/license/gpl-3-0/)
138
[![License: Paid](https://img.shields.io/badge/License-proprietary-blue)](mailto:[email protected])
149
[![Coverage Status](
1510
https://coveralls.io/repos/github/fuzzylite/pyfuzzylite/badge.svg?branch=main)](
16-
https://coveralls.io/github/fuzzylite/pyfuzzylite?branch=main)
11+
https://coveralls.io/github/fuzzylite/pyfuzzylite?branch=main)
1712
[![Build](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/build.yml/badge.svg)](
1813
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/build.yml)
1914
[![Test](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/test.yml/badge.svg)](
2015
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/test.yml)
2116
[![Publish](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/publish.yml/badge.svg)](
2217
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/publish.yml)
2318

19+
</div>
20+
2421
## <a name="fuzzylite">FuzzyLite</a>
2522

2623
**The FuzzyLite Libraries for Fuzzy Logic Control** refer to [`fuzzylite`](https://github.com/fuzzylite/fuzzylite/)
@@ -223,7 +220,5 @@ Or using `bibtex`:
223220

224221
***
225222

226-
fuzzylite&reg; is a registered trademark of FuzzyLite Limited <br>
227-
jfuzzylite&trade; is a trademark of FuzzyLite Limited <br>
228-
pyfuzzylite&trade; is a trademark of FuzzyLite Limited <br>
229-
QtFuzzyLite&trade; is a trademark of FuzzyLite Limited <br>
223+
fuzzylite&reg; is a registered trademark of FuzzyLite <br>
224+
jfuzzylite&trade;, pyfuzzylite&trade; and QtFuzzyLite&trade; are trademarks of FuzzyLite

docs/index.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
# pyfuzzylite 8.0.2
2-
3-
***
4-
5-
<img src="https://fuzzylite.github.io/pyfuzzylite/image/fuzzylite.svg" align="left" alt="fuzzylite">
6-
7-
## A Fuzzy Logic Control Library in Python
8-
9-
by [**Juan Rada-Vilela, PhD** :fontawesome-solid-square-arrow-up-right:](https://fuzzylite.com/about)
10-
11-
***
1+
<div align="center">
2+
<img src="/fuzzylite.png" alt="fuzzylite" width="10%">
3+
<h1>pyfuzzylite 8.0.3</h1>
4+
<h2>A Fuzzy Logic Control Library in Python</h2>
5+
<h3>by <a href="https://fuzzylite.com/about"><b>Juan Rada-Vilela, PhD</b></a></h3>
126

137
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://opensource.org/license/gpl-3-0/)
148
[![License: Paid](https://img.shields.io/badge/License-proprietary-blue)](mailto:[email protected])
159
[![Coverage Status](
1610
https://coveralls.io/repos/github/fuzzylite/pyfuzzylite/badge.svg?branch=main)](
17-
https://coveralls.io/github/fuzzylite/pyfuzzylite?branch=main)
11+
https://coveralls.io/github/fuzzylite/pyfuzzylite?branch=main)
1812
[![Build](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/build.yml/badge.svg)](
1913
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/build.yml)
2014
[![Test](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/test.yml/badge.svg)](
2115
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/test.yml)
2216
[![Publish](https://github.com/fuzzylite/pyfuzzylite/actions/workflows/publish.yml/badge.svg)](
2317
https://github.com/fuzzylite/pyfuzzylite/actions/workflows/publish.yml)
2418

25-
***
19+
</div>
2620

2721
## <a name="fuzzylite">FuzzyLite</a>
2822

@@ -221,7 +215,5 @@ Or using `bibtex`:
221215

222216
***
223217

224-
fuzzylite&reg; is a registered trademark of FuzzyLite Limited <br>
225-
jfuzzylite&trade; is a trademark of FuzzyLite Limited <br>
226-
pyfuzzylite&trade; is a trademark of FuzzyLite Limited <br>
227-
QtFuzzyLite&trade; is a trademark of FuzzyLite Limited <br>
218+
fuzzylite&reg; is a registered trademark of FuzzyLite <br>
219+
jfuzzylite&trade;, pyfuzzylite&trade; and QtFuzzyLite&trade; are trademarks of FuzzyLite

fuzzylite/__init__.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
"""pyfuzzylite (TM), a fuzzy logic control library in Python.
2-
3-
Copyright (C) 2010-2023 FuzzyLite Limited. All rights reserved.
4-
Author: Juan Rada-Vilela, PhD <[email protected]>.
1+
"""pyfuzzylite: a fuzzy logic control library in Python.
52
63
This file is part of pyfuzzylite.
74
8-
pyfuzzylite is free software: you can redistribute it and/or modify it under
9-
the terms of the FuzzyLite License included with the software.
10-
11-
You should have received a copy of the FuzzyLite License along with
12-
pyfuzzylite. If not, see <https://github.com/fuzzylite/pyfuzzylite/>.
5+
Repository: https://github.com/fuzzylite/pyfuzzylite/
136
14-
pyfuzzylite is a trademark of FuzzyLite Limited.
7+
License: FuzzyLite License
158
16-
fuzzylite is a registered trademark of FuzzyLite Limited.
9+
Copyright: FuzzyLite by Juan Rada-Vilela. All rights reserved.
1710
"""
18-
from . import examples # noqa
11+
12+
from . import examples # noqa: F401
1913
from .activation import *
2014
from .benchmark import *
2115
from .defuzzifier import *
@@ -35,3 +29,6 @@
3529
__name__ = information.name
3630
__doc__ = information.description
3731
__version__ = information.version
32+
__author__ = information.author
33+
__copyright__ = information.copyright
34+
__license__ = information.license

fuzzylite/activation.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
"""pyfuzzylite (TM), a fuzzy logic control library in Python.
2-
3-
Copyright (C) 2010-2023 FuzzyLite Limited. All rights reserved.
4-
Author: Juan Rada-Vilela, PhD <[email protected]>.
1+
"""pyfuzzylite: a fuzzy logic control library in Python.
52
63
This file is part of pyfuzzylite.
74
8-
pyfuzzylite is free software: you can redistribute it and/or modify it under
9-
the terms of the FuzzyLite License included with the software.
10-
11-
You should have received a copy of the FuzzyLite License along with
12-
pyfuzzylite. If not, see <https://github.com/fuzzylite/pyfuzzylite/>.
5+
Repository: https://github.com/fuzzylite/pyfuzzylite/
136
14-
pyfuzzylite is a trademark of FuzzyLite Limited.
7+
License: FuzzyLite License
158
16-
fuzzylite is a registered trademark of FuzzyLite Limited.
9+
Copyright: FuzzyLite by Juan Rada-Vilela. All rights reserved.
1710
"""
11+
1812
from __future__ import annotations
1913

2014
__all__ = [

0 commit comments

Comments
 (0)