Skip to content

Commit 1fc1e8e

Browse files
committed
Refactor repo's files
This is intended to allow calling both rust lib and python lib "cpp-linter" when installing with cargo or pip. Also when using python, the entry point script is now the same as it is in v1.x: `cpp_linter.main()`.
1 parent 4f9b912 commit 1fc1e8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+58
-101
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
6-
exclude: cpp-linter-lib/tests/.*\.(?:patch|diff)
6+
exclude: cpp-linter/tests/.*\.(?:patch|diff)
77
- id: end-of-file-fixer
88
- id: check-docstring-first
99
- id: check-added-large-files

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
22

33
[workspace]
4-
members = ["cpp-linter-lib", "cpp-linter-py", "docs"]
4+
members = ["cpp-linter", "py-binding", "docs"]
55
resolver = "2"
66

77
[workspace.package]

cpp-linter-py/cpp_linter/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

cpp-linter-py/cpp_linter/entry_point.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

cpp-linter-py/src/lib.rs

Lines changed: 0 additions & 25 deletions
This file was deleted.
File renamed without changes.

cpp-linter-lib/Cargo.toml renamed to cpp-linter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "cpp-linter-lib"
2+
name = "cpp-linter"
33
edition = "2021"
44
repository = "https://github.com/cpp-linter/cpp_linter_rs/tree/main/cpp-linter-lib"
55
readme = "README.md"

0 commit comments

Comments
 (0)