Skip to content

Comments

add fix for muting FSTRING_MIDDLE in 3.12+#1148

Merged
asottile merged 1 commit intomainfrom
fstring-312
Jun 13, 2023
Merged

add fix for muting FSTRING_MIDDLE in 3.12+#1148
asottile merged 1 commit intomainfrom
fstring-312

Conversation

@asottile
Copy link
Member

this still does not pass the full testsuite -- but this gets closer to that

@asottile asottile merged commit 081c170 into main Jun 13, 2023
@asottile asottile deleted the fstring-312 branch June 13, 2023 01:47
FriedrichFroebel added a commit to FriedrichFroebel/python-djvulibre that referenced this pull request Jul 27, 2023
bruno-fs added a commit to bruno-fs/retrocookie that referenced this pull request May 29, 2024
Update pycodestyle to include a [fix][pycodestyle fix]
for false positives E231 being triggered in python 3.12.

In order to do so, dependency resolution required bumping
minimum python version to 3.8.1 (dependency hell, is that you?).

[pycodestyle fix]: PyCQA/pycodestyle#1148
bruno-fs added a commit to bruno-fs/retrocookie that referenced this pull request May 29, 2024
Update pycodestyle to include a [fix][pycodestyle fix]
for false positives E231 being triggered in python 3.12.

In order to do so, dependency resolution required bumping
minimum python version to 3.8.1 (dependency hell, is that you?).

[pycodestyle fix]: PyCQA/pycodestyle#1148
cjolowicz pushed a commit to cjolowicz/retrocookie that referenced this pull request May 30, 2024
* 👷 Limit max pygit2 version

🔧 [pygit2] Limit pygit2 max version to <1.15 due to breaking changes [pygit2-changelog].

[pygit2-changelog]: https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md#1150-2024-05-18

* 🔧 [CI] update pipx installation command

For some reason (internal change on pipx?), 'constraint' parameter
now requires a full path.

* Update constraints versions

* Bump supported python version matrix

Drop support for python 3.7, which is EOL. This was required to allow
upgrading some dependencies which were affected by CVEs.

Also bump supported python versions up to the latest, which at time of
writing is python 3.12.

* Auto-fixes provided by updated pre-commit checks

* [pycodestyle] Fix false positive E231

Update pycodestyle to include a [fix][pycodestyle fix]
for false positives E231 being triggered in python 3.12.

In order to do so, dependency resolution required bumping
minimum python version to 3.8.1 (dependency hell, is that you?).

[pycodestyle fix]: PyCQA/pycodestyle#1148

* [bugbear] Adjust code to be compliant with B017

B017 (assert-raises-exception) enforces treats assertRaises(Exception)
and pytest.raises(Exception) like pure evil.

* [mypy] Update code to be compliant with updated mypy rules

* [typeguard] adjust code to be compliant

This commit introduces a change that is required for typeguard to get past at least "collection" phase of pytest. However, ~20 failures still need to be fixed in order to be fully complaint with latest typeguard.

Instead, let's just limit max typeguard version until a proper fix is implemented.
at-wat added a commit to seqsense/aports-ros-experimental that referenced this pull request Jun 4, 2024
at-wat added a commit to at-wat/roslint-pip that referenced this pull request Jun 5, 2024
at-wat added a commit to at-wat/roslint-pip that referenced this pull request Jun 5, 2024
cu added a commit to cu/silicon that referenced this pull request Dec 26, 2024
cu added a commit to cu/silicon that referenced this pull request Dec 26, 2024
stephankramer added a commit to FluidityProject/fluidity that referenced this pull request Feb 11, 2026
Flake8 <6.1.0 and python 3.12 seems to have issues throwing up errors in
the middle of f-strings.

Fixed in 6.1.0: PyCQA/pycodestyle#1148

Upgrade to 6.1.0 only, as any newer versions introduce more errors that
either need fixing, or ignoring explicitly - which should probably be
done in a separate PR.
benfulton added a commit to FluidityProject/fluidity that referenced this pull request Feb 13, 2026
* Don't set NUM_GLOBAL_PARTS for Zoltan

Setting both NUM_GLOBAL_PARTS and NUM_LOCAL_PARTS together has issues

* Upgrade flake8 version used in precommit

Flake8 <6.1.0 and python 3.12 seems to have issues throwing up errors in
the middle of f-strings.

Fixed in 6.1.0: PyCQA/pycodestyle#1148

Upgrade to 6.1.0 only, as any newer versions introduce more errors that
either need fixing, or ignoring explicitly - which should probably be
done in a separate PR.

---------

Co-authored-by: Ben Fulton <bfulton@imperial.ac.uk>
Co-authored-by: Stephan Kramer <s.kramer@imperial.ac.uk>
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