mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
remove python3.10 compat
This commit is contained in:
parent
6a1657722b
commit
c92960f831
@ -17,12 +17,3 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# workaround for python3.10 while it wasn't yet released in arch
|
|
||||||
# also remove mypy --python-version flag later
|
|
||||||
import typing
|
|
||||||
import typing_extensions
|
|
||||||
|
|
||||||
|
|
||||||
for extension in dir(typing_extensions):
|
|
||||||
if extension not in dir(typing):
|
|
||||||
setattr(typing, extension, getattr(typing_extensions, extension))
|
|
||||||
|
3
tox.ini
3
tox.ini
@ -4,7 +4,7 @@ dependencies = -e .[pacman,s3,web]
|
|||||||
project_name = ahriman
|
project_name = ahriman
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
flags = --implicit-reexport --strict --allow-untyped-decorators --allow-subclassing-any --python-version 3.11
|
flags = --implicit-reexport --strict --allow-untyped-decorators --allow-subclassing-any
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = --cov=ahriman --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=100 --spec
|
addopts = --cov=ahriman --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=100 --spec
|
||||||
@ -57,6 +57,5 @@ commands =
|
|||||||
deps =
|
deps =
|
||||||
{[tox]dependencies}
|
{[tox]dependencies}
|
||||||
-e .[tests]
|
-e .[tests]
|
||||||
typing_extensions
|
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs}
|
pytest {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user