Skip to content

Conversation

@Tieqiong
Copy link
Contributor

  1. Add pre-commit hooks and configuration files:
  • black, sort, flake8, codespell: standard skpkg configuration
  • clang-format: Google style clang formatter

We should discuss on how we setup codespell here, as in regular skpkg packages we refer to ignore_words and ignore_lines in pyproject.toml, which doesn't exist here. I'm able to use the ignore_word file directly into pre-commit.yaml by making it a shell command (which force the comment symbol from ;; to # ), but I'm not sure how to add ignore_lines.

We might also want to add an extra cpplint check after some maintenance is done on the code. I already added it in .pre-commit-config.yaml but commented out for now.

  1. Remove travis ci and local conda recipe: I think we don't need them anymore.

@sbillinge please check, thanks!

@sbillinge
Copy link
Contributor

We should discuss on how we setup codespell here, as in regular skpkg packages we refer to ignore_words and ignore_lines in pyproject.toml, which doesn't exist here. I'm able to use the ignore_word file directly into pre-commit.yaml by making it a shell command (which force the comment symbol from ;; to # ), but I'm not sure how to add ignore_lines.

I would add a pyproject.toml. it only needs to have the [tool.black] and [tool.codespell] blocls in it. Nothing about building the package. Will this break setuptools for everything else if we do that?

@sbillinge
Copy link
Contributor

cpplint would be good but let's get everything working first.

@sbillinge
Copy link
Contributor

remove travis and conda recipe": correct

@sbillinge
Copy link
Contributor

is there a reason why the tests are not funning on the PR? Do tests pass?

@Tieqiong
Copy link
Contributor Author

@sbillinge Thanks for the comments. This cpp library doesn't use setuptool, and I think adding a pyproject.toml is fine.

We never got the original tests to work, and I believe we discussed this before and decided to rewrite all tests using modernized cpp testing suits. All the tests on this for now depend on diffpy.srreal.

@sbillinge sbillinge merged commit 1785ad7 into diffpy:windows Jun 26, 2025
1 check passed
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