Skip to content

skpkg: pre-commit auto fixes with line length of 79 #57

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

Merged
merged 6 commits into from
Jun 24, 2025

Conversation

cadenmyers13
Copy link
Contributor

@cadenmyers13 cadenmyers13 commented Jun 23, 2025

The last autofix PR had a black linelength requirement of 115. This PR changes this to 79 (skpkg standard) and makes those auto fixes.

There are only two flake8 errors that need to be addressed regarding line length. Because these are simple and quick, I will also put them on this PR and make note inline of where exactly I made these manual fixes.

@@ -52,7 +53,8 @@ def get_objcryst_libraries():
conda_prefix = os.environ.get("CONDA_PREFIX")
if not conda_prefix:
raise EnvironmentError(
"CONDA_PREFIX is not set. Please install ObjCryst using conda and activate the environment."
"CONDA_PREFIX is not set. "
"Please install ObjCryst using conda and activate the environment."
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manual line length fix (1 of 2 fixes)

@@ -64,7 +66,8 @@ def get_objcryst_libraries():
stem = Path(fn).stem
if "objcryst" not in stem.lower():
continue
# strip a leading "lib" so that setuptools does -lObjCryst, not -llibObjCryst
# strip a leading "lib"
# so that setuptools does -lObjCryst, not -llibObjCryst
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manual line length fix (2 of 2 fixes)

@cadenmyers13
Copy link
Contributor Author

I also incorporated docformatting autofixes here since they werent in the pyproject.toml

@cadenmyers13
Copy link
Contributor Author

@sbillinge ready for review

@sbillinge sbillinge merged commit 4f3d0df into diffpy:cookie Jun 24, 2025
13 checks passed
@cadenmyers13 cadenmyers13 deleted the pc-blackv2 branch June 24, 2025 17:58
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.

2 participants