Skip to content

Conversation

@kwk
Copy link
Collaborator

@kwk kwk commented Nov 12, 2025

I fixed the AttributeError: module 'ast' has no attribute 'NameConstant' issue (#439) by updating to flake8-pytest-style release 2.2.0.

@kwk kwk self-assigned this Nov 12, 2025
@kwk kwk force-pushed the ran-pre-commit-autoupdate branch from aba9522 to cbf2026 Compare November 12, 2025 09:54
kwk added 2 commits November 12, 2025 11:54
According to
m-burst/flake8-pytest-style#361 (comment)
this should fix the issue of:

```
AttributeError: module 'ast' has no attribute 'NameConstant'
```
This reverts commit cbf2026.
@kwk kwk changed the title pre-commit update Support Python3.14 (Fix #429) Nov 12, 2025
@kwk kwk marked this pull request as draft November 12, 2025 11:41
@kwk
Copy link
Collaborator Author

kwk commented Nov 12, 2025

There still is an error with pylint that existed before as well.

pylint...................................................................Failed
- hook id: pylint
- exit code: 2

************* Module conftest
conftest.py:1:0: E0401: Unable to import 'pytest' (import-error)
conftest.py:2:0: E0401: Unable to import '_pytest.config.argparsing' (import-error)
conftest.py:3:0: E0401: Unable to import '_pytest.nodes' (import-error)
************* Module did.base
did/base.py:16:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:17:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:18:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:19:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:20:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:21:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:22:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:23:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
did/base.py:24:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
************* Module did.cli
did/cli.py:13:0: E0401: Unable to import 'dateutil.relativedelta' (import-error)
************* Module did.plugins.bodhi
did/plugins/bodhi.py:16:0: E0401: Unable to import 'bodhi.client.bindings' (import-error)
did/plugins/bodhi.py:17:0: E0401: Unable to import 'bodhi.client.bindings' (import-error)
************* Module did.plugins.bugzilla
did/plugins/bugzilla.py:48:0: E0401: Unable to import 'bugzilla' (import-error)
did/plugins/bugzilla.py:49:0: E0401: Unable to import 'bugzilla.bug' (import-error)
did/plugins/bugzilla.py:50:0: E0401: Unable to import 'requests.exceptions' (import-error)
did/plugins/bugzilla.py:51:0: E0401: Unable to import 'tenacity' (import-error)
************* Module did.plugins.confluence
did/plugins/confluence.py:75:0: E0401: Unable to import 'dateutil.parser' (import-error)
did/plugins/confluence.py:76:0: E0401: Unable to import 'requests' (import-error)
did/plugins/confluence.py:77:0: E0401: Unable to import 'urllib3' (import-error)
did/plugins/confluence.py:78:0: E0401: Unable to import 'requests_gssapi' (import-error)
did/plugins/confluence.py:79:0: E0401: Unable to import 'requests_gssapi' (import-error)
************* Module did.plugins.github
did/plugins/github.py:51:0: E0401: Unable to import 'requests' (import-error)
did/plugins/github.py:52:0: E0401: Unable to import 'tenacity' (import-error)
************* Module did.plugins.gitlab
did/plugins/gitlab.py:37:0: E0401: Unable to import 'dateutil' (import-error)
did/plugins/gitlab.py:38:0: E0401: Unable to import 'requests' (import-error)
did/plugins/gitlab.py:39:0: E0401: Unable to import 'urllib3' (import-error)
did/plugins/gitlab.py:40:0: E0401: Unable to import 'urllib3.exceptions' (import-error)
************* Module did.plugins.google
did/plugins/google.py:60:0: E0401: Unable to import 'httplib2' (import-error)
did/plugins/google.py:62:0: E0401: Unable to import 'oauth2client.client' (import-error)
did/plugins/google.py:63:0: E0401: Unable to import 'googleapiclient' (import-error)
did/plugins/google.py:64:0: E0401: Unable to import 'oauth2client' (import-error)
did/plugins/google.py:65:0: E0401: Unable to import 'oauth2client.file' (import-error)
************* Module did.plugins.hyperkitty
did/plugins/hyperkitty.py:28:0: E0401: Unable to import 'requests' (import-error)
************* Module did.plugins.jira
did/plugins/jira.py:97:0: E0401: Unable to import 'dateutil.parser' (import-error)
************* Module tests.plugins.test_jira
tests/plugins/test_jira.py:8:0: E0401: Unable to import 'pytest' (import-error)
tests/plugins/test_jira.py:9:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_koji
tests/plugins/test_koji.py:8:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_pagure
tests/plugins/test_pagure.py:10:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_phabricator
tests/plugins/test_phabricator.py:8:0: E0401: Unable to import 'pytest' (import-error)
************* Module tests.plugins.test_sentry
tests/plugins/test_sentry.py:6:0: E0401: Unable to import 'pytest' (import-error)
tests/plugins/test_sentry.py:7:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_trac
tests/plugins/test_trac.py:6:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_trello
tests/plugins/test_trello.py:8:0: E0401: Unable to import 'pytest' (import-error)
tests/plugins/test_trello.py:9:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.plugins.test_zammad
tests/plugins/test_zammad.py:6:0: E0401: Unable to import '_pytest.logging' (import-error)
************* Module tests.test_base
tests/test_base.py:13:0: E0401: Unable to import 'pytest' (import-error)
************* Module tests.test_cli
tests/test_cli.py:7:0: E0401: Unable to import 'pytest' (import-error)
************* Module tests.test_stats
tests/test_stats.py:5:0: E0401: Unable to import 'pytest' (import-error)
************* Module tests.test_utils
tests/test_utils.py:8:0: E0401: Unable to import 'pytest' (import-error)
tests/test_utils.py:9:0: E0401: Unable to import '_pytest.logging' (import-error)

@kwk
Copy link
Collaborator Author

kwk commented Nov 12, 2025

Superseded by #440

@kwk kwk closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant