aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md13
-rw-r--r--pyproject.toml3
2 files changed, 12 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9fa6de9..b7ff783 100644
--- a/README.md
+++ b/README.md
@@ -38,17 +38,20 @@ Options:
## Hacking
-Unit testing is done with [Hypothesis] and [pytest]. Since scadere
-does not depend on any Python package, testing can be safely done in-tree:
+Unit testing is done with [pytest], [pytest-asyncio] and [Hypothesis].
+Since scadere does not depend on any Python package,
+it is safe to test in-tree:
PYTHONPATH=src pytest
## Contributing
-Please make sure that patches maintain the full branch [coverage]:
+Please make sure that patches maintain the full branch [coverage]
+and the [hobgoblins][flake8] are happy:
PYTHONPATH=src coverage run
coverage report
+ flake8
Patches should be sent to [chung@loa.loang.net][loang mailing list]
using [`git send-email`][git send-email], with the following configuration:
@@ -65,9 +68,11 @@ under the terms of the GNU [Affero General Public License][agplv3] as
published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
-[Hypothesis]: https://hypothesis.rtfd.io
[pytest]: https://docs.pytest.org
+[pytest-asyncio]: https://pytest-asyncio.rtfd.io
+[Hypothesis]: https://hypothesis.rtfd.io
[coverage]: https://coverage.rtfd.io
+[flake8]: https://flake8.pycqa.org
[loang mailing list]: https://loa.loang.net/chung
[git send-email]: https://git-send-email.io
[agplv3]: https://www.gnu.org/licenses/agpl-3.0.html
diff --git a/pyproject.toml b/pyproject.toml
index 244eba7..2c839b0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,6 +24,9 @@ dynamic = [ 'version' ]
urls = { Source = 'https://trong.loang.net/scadere' }
scripts = { scadere = 'scadere.__main__:main' }
+[project.optional-dependencies]
+dev = [ 'pytest', 'pytest-asyncio', 'hypothesis', 'coverage', 'flake8' ]
+
[tool.pytest.ini_options]
asyncio_mode = 'auto'
asyncio_default_fixture_loop_scope = 'function'