Skip to content

Conversation

@JaapWijnen
Copy link
Collaborator

@JaapWijnen JaapWijnen commented Nov 28, 2024

Depends on #8
Same implementation as differentiable-swift/swift-numerics-differentiable#2
except for also adding the NoAccessLevelOnExtensionDeclaration rule here. Which we should update in the other repos as well.

@JaapWijnen JaapWijnen requested a review from GNMoseke November 28, 2024 15:37
@JaapWijnen JaapWijnen force-pushed the ci/set-up-linting-and-tests branch 3 times, most recently from 29a8f5d to 9a548c5 Compare November 28, 2024 15:43
@JaapWijnen JaapWijnen force-pushed the ci/set-up-linting-and-tests branch 2 times, most recently from aa3382c to eff5d52 Compare December 3, 2024 11:14
@JaapWijnen JaapWijnen changed the title CI: set up linting and tests CI: set up linting Dec 3, 2024
@JaapWijnen JaapWijnen force-pushed the ci/set-up-linting-and-tests branch from eff5d52 to 71d828b Compare December 3, 2024 11:16
@JaapWijnen JaapWijnen force-pushed the ci/set-up-linting-and-tests branch from 71d828b to 3977333 Compare December 3, 2024 15:10
@JaapWijnen
Copy link
Collaborator Author

This unfortunately contains some bugs wrt Differentiation (see some of the lint fails) where it "corrects" correct spelling to something that doesn't compile. It tries to remove spaces in a spot that leads to concatenating two unrelated tokens.

@JaapWijnen
Copy link
Collaborator Author

I think we'll have to switch to Nick Lockwood's formatter. That way we can also define a custom rule that allows _vjp spelling for functions which I'd like to do. Haven't found a way for custom rules in apple's swift-format yet.

@JaapWijnen
Copy link
Collaborator Author

Nice. We should probably add a comment why we're disabling swift-format for those files and link to the issue once we have created one

@GNMoseke GNMoseke force-pushed the ci/set-up-linting-and-tests branch from 824ab19 to 34e20fc Compare December 17, 2024 11:43
@GNMoseke
Copy link
Contributor

I've overhauled this branch to use Nick's SwiftFormat - PRs coming to other repos as well

In the long term I'd still like to use the apple one just to keep our dependencies completely clean, but it is definitely not ready for primetime yet

@GNMoseke
Copy link
Contributor

bump @clackary @JaapWijnen

@GNMoseke GNMoseke force-pushed the ci/set-up-linting-and-tests branch from 5b03001 to 88b3532 Compare December 17, 2024 13:21
@JaapWijnen JaapWijnen merged commit 5bd4b41 into main Dec 17, 2024
4 checks passed
@JaapWijnen JaapWijnen deleted the ci/set-up-linting-and-tests branch December 17, 2024 13:29
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.

4 participants