Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flake8 suppressions for invalid escape sequences #20161

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ preconfigopts += 'export FFLAGS="$FFLAGS -fallow-argument-mismatch -I${CPATH//:/
# syntax was made invalid in c++11
preconfigopts += "sed -i 's/if (spec < 0)/if (spec == nullptr)/g' utils_lgpl/delftonline/src/delftonline/server.cpp && "
# avoid comparing logical with integer
preconfigopts += "sed -i 's/if (has_umean \/= 0)/if (has_umean .neqv. .false.)/g' " # noqa: W605
preconfigopts += r"sed -i 's/if (has_umean \/= 0)/if (has_umean .neqv. .false.)/g' "
preconfigopts += "engines_gpl/flow2d3d/packages/flow2d3d_io/src/input/restart_trim_flow.f90 && "
preconfigopts += "sed -i -e 's/-recursive/-frecursive/g' -e 's/-traceback/-fbacktrace/g' configure.ac && "
# copy ESMF_RegridWeightGen_in_Delft3D-WAVE.sh script
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sanity_pip_check = True
# add missing version for OmegaFold
exts_list = [
(name, version, {
'preinstallopts': """sed -i '/^setup(/a \ version="%(version)s",' setup.py && """, # noqa: W605
'preinstallopts': """sed -i '/^setup(/a version="%(version)s",' setup.py && """,
'source_tmpl': 'v%(version)s.tar.gz',
'source_urls': ['https://github.com/HeliXonProtein/OmegaFold/archive/'],
'checksums': ['ab3b48fe7721539b6943b49cdbafc9799e15b4425a324cc25daf15a24e3f9e37'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Register at https://www.engr.psu.edu/adri/Home.aspx and follow instructions

start_dir = 'src'

prebuildopts = r"sed -ie 's/^\(\s\)gcc /\1gfortran /g' makefile && " # noqa: W605
prebuildopts = r"sed -ie 's/^\(\s\)gcc /\1gfortran /g' makefile && "
prebuildopts += 'rm *.o && '

buildopts = 'SUFFIX="-c -O3 -std=legacy"'
Expand Down
Loading