@@ -3,19 +3,17 @@ name = "python-statemachine"
33version = " 2.3.6"
44description = " Python Finite State Machines made easy."
55authors = [" Fernando Macedo <fgmacedo@gmail.com>" ]
6- maintainers = [
7- " Fernando Macedo <fgmacedo@gmail.com>" ,
8- ]
6+ maintainers = [" Fernando Macedo <fgmacedo@gmail.com>" ]
97license = " MIT license"
108readme = " README.md"
119homepage = " https://github.com/fgmacedo/python-statemachine"
12- packages = [
13- {include = " statemachine" },
14- {include = " statemachine/**/*.py" },
15- ]
10+ packages = [{ include = " statemachine" }, { include = " statemachine/**/*.py" }]
1611include = [
1712 { path = " statemachine/locale/**/*.po" , format = " sdist" },
18- { path = " statemachine/locale/**/*.mo" , format = [" sdist" , " wheel" ] }
13+ { path = " statemachine/locale/**/*.mo" , format = [
14+ " sdist" ,
15+ " wheel" ,
16+ ] },
1917]
2018classifiers = [
2119 " Intended Audience :: Developers" ,
@@ -35,7 +33,7 @@ classifiers = [
3533
3634[tool .poetry .dependencies ]
3735python = " >=3.7"
38- pydot = { version = " >=2.0.0" , optional = true }
36+ pydot = { version = " >=2.0.0" , optional = true , python = " >3.8 " }
3937
4038[tool .poetry .extras ]
4139diagrams = [" pydot" ]
@@ -59,7 +57,7 @@ pytest-django = { version = "^4.8.0", python = ">3.8" }
5957Sphinx = { version = " *" , python = " >3.8" }
6058myst-parser = { version = " *" , python = " >3.8" }
6159sphinx-gallery = { version = " *" , python = " >3.8" }
62- pillow = { version =" *" , python = " >3.8" }
60+ pillow = { version = " *" , python = " >3.8" }
6361sphinx-autobuild = { version = " *" , python = " >3.8" }
6462furo = { version = " ^2024.5.6" , python = " >3.8" }
6563sphinx-copybutton = { version = " ^0.5.2" , python = " >3.8" }
@@ -72,9 +70,7 @@ build-backend = "poetry.core.masonry.api"
7270addopts = " --ignore=docs/conf.py --ignore=docs/auto_examples/ --ignore=docs/_build/ --ignore=tests/examples/ --cov --cov-config .coveragerc --doctest-glob='*.md' --doctest-modules --doctest-continue-on-failure --benchmark-autosave --benchmark-group-by=name"
7371doctest_optionflags = " ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
7472asyncio_mode = " auto"
75- markers = [
76- """ slow: marks tests as slow (deselect with '-m "not slow"')""" ,
77- ]
73+ markers = [""" slow: marks tests as slow (deselect with '-m "not slow"')""" ]
7874python_files = [" tests.py" , " test_*.py" , " *_tests.py" ]
7975
8076[tool .mypy ]
@@ -85,19 +81,11 @@ disable_error_code = "annotation-unchecked"
8581mypy_path = " $MYPY_CONFIG_FILE_DIR/tests/django_project"
8682
8783[[tool .mypy .overrides ]]
88- module = [
89- ' django.*' ,
90- ' pytest.*' ,
91- ' pydot.*' ,
92- ' sphinx_gallery.*' ,
93- ]
84+ module = [' django.*' , ' pytest.*' , ' pydot.*' , ' sphinx_gallery.*' ]
9485ignore_missing_imports = true
9586
9687[tool .flake8 ]
97- ignore = [
98- " E231" ,
99- " W503" ,
100- ]
88+ ignore = [" E231" , " W503" ]
10189max-line-length = 99
10290
10391[tool .ruff ]
@@ -131,10 +119,10 @@ exclude = [
131119
132120# Enable Pyflakes and pycodestyle rules.
133121select = [
134- " E" , # pycodestyle errors
135- " W" , # pycodestyle warnings
136- " F" , # pyflakes
137- " I" , # isort
122+ " E" , # pycodestyle errors
123+ " W" , # pycodestyle warnings
124+ " F" , # pyflakes
125+ " I" , # isort
138126 " UP" , # pyupgrade
139127 " C" , # flake8-comprehensions
140128 " B" , # flake8-bugbear
@@ -169,14 +157,8 @@ convention = "google"
169157branch = true
170158relative_files = true
171159data_file = " .coverage"
172- source = [
173- " statemachine" ,
174- ]
175- omit = [
176- " *test*.py" ,
177- " tmp/*" ,
178- " pytest_cov" ,
179- ]
160+ source = [" statemachine" ]
161+ omit = [" *test*.py" , " tmp/*" , " pytest_cov" ]
180162[tool .coverage .report ]
181163show_missing = true
182164exclude_lines = [
@@ -190,7 +172,7 @@ exclude_lines = [
190172 # Don't complain if tests don't hit defensive assertion code:
191173 " raise AssertionError" ,
192174 " raise NotImplementedError" ,
193- " if TYPE_CHECKING" ,
175+ " if TYPE_CHECKING" ,
194176]
195177
196178[tool .coverage .html ]
0 commit comments