You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/18 11:36:27 UTC
[incubator-opendal] 01/03: Cleanup
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch cleanup
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 1313a05435bc0bd224a68235176ddbfbee94e3b8
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Sat Mar 18 19:33:30 2023 +0800
Cleanup
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.config/nextest.toml | 17 +++++++++++++++++
.taplo.toml | 17 +++++++++++++++++
.typos.toml | 17 +++++++++++++++++
bindings/object_store/rustfmt.toml | 8 --------
licenserc.toml | 31 ++++++++++++++-----------------
rust-toolchain.toml | 17 +++++++++++++++++
rustfmt.toml | 17 +++++++++++++++++
vercel.json | 8 --------
8 files changed, 99 insertions(+), 33 deletions(-)
diff --git a/.config/nextest.toml b/.config/nextest.toml
index 572f6e28..fe1754ad 100644
--- a/.config/nextest.toml
+++ b/.config/nextest.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[profile.default]
fail-fast = false
slow-timeout = { period = "60s", terminate-after = 2 }
diff --git a/.taplo.toml b/.taplo.toml
index 583da20d..0a6b2a13 100644
--- a/.taplo.toml
+++ b/.taplo.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
include = ["Cargo.toml", "**/*.toml"]
[formatting]
diff --git a/.typos.toml b/.typos.toml
index 89d10f5c..1c2549c9 100644
--- a/.typos.toml
+++ b/.typos.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[default.extend-words]
# Random strings.
"ba" = "ba"
diff --git a/bindings/object_store/rustfmt.toml b/bindings/object_store/rustfmt.toml
deleted file mode 100644
index e50f444c..00000000
--- a/bindings/object_store/rustfmt.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-edition = "2021"
-reorder_imports = true
-# format_code_in_doc_comments = true
-# imports_granularity = "Item"
-# group_imports = "StdExternalCrate"
-# where_single_line = true
-# trailing_comma = "Vertical"
-# overflow_delimited_expr = true
diff --git a/licenserc.toml b/licenserc.toml
index fee37991..063633ea 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -18,36 +18,33 @@
headerPath = "Apache-2.0-ASF.txt"
excludes = [
- "**/*.toml",
- "!**/Cargo.toml",
- "!**/licenserc.toml",
- "!**/pyproject.toml",
-
- # Generated files
+ # Well known generated files
"**/Cargo.lock",
"**/yarn.lock",
- "**/fixtures/**",
- "tests/data/**",
- "bindings/nodejs/.npmignore",
- "bindings/nodejs/.prettierignore",
- "bindings/nodejs/generated*.*",
- "**/*.node",
- "bindings/python/test_requirements.txt",
+
+ # Python binding related files
"bindings/python/opendal.pyi",
"**/__pycache__",
"**/.pytest_cache",
"**/venv/**",
+
+ # Nodejs binding related files
+ "bindings/nodejs/.npmignore",
+ "bindings/nodejs/.prettierignore",
+ "bindings/nodejs/generated*.*",
+
+ # Website generated files
"website/build/**",
"website/static/.nojekyll",
"website/.docusaurus",
- # Files that doesn't need license.
- ".env.example",
- ".env",
-
# ascii is licensed under MIT from memcache-async
"core/src/services/memcached/MIT-ascii.txt",
"core/src/services/memcached/ascii.rs",
+
+ # Files that doesn't need license.
+ ".env.example",
+ ".env",
]
[properties]
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 73cb934d..870d7eb7 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]
diff --git a/rustfmt.toml b/rustfmt.toml
index e50f444c..ec3c4bc3 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
edition = "2021"
reorder_imports = true
# format_code_in_doc_comments = true
diff --git a/vercel.json b/vercel.json
deleted file mode 100644
index cb13d86b..00000000
--- a/vercel.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "redirects": [
- {
- "source": "/",
- "destination": "/opendal/"
- }
- ]
-}