Skip to content

Commit

Permalink
chore(git): ignore .duckdb (#21417)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Dec 10, 2024
1 parent 127cc25 commit 78c2d09
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 9 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
# **/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"**/*.tfstate",
"**/*.unsealed.yaml",
"**/.DS_Store",
"**/*.duckdb",
"**/.env.development.local",
"**/.env.production.local",
"**/.gitkeep",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ AllCops:
- '**/*.tfstate'
- '**/*.unsealed.yaml'
- '**/.DS_Store'
- '**/*.duckdb'
- '**/.env.development.local'
- '**/.env.production.local'
- '**/.gitkeep'
Expand Down
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exclude = [
"**/*.tfstate",
"**/*.unsealed.yaml",
"**/.DS_Store",
"**/*.duckdb",
"**/.env.development.local",
"**/.env.production.local",
"**/.gitkeep",
Expand Down
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .sqlfluffignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ignore: |
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
1 change: 1 addition & 0 deletions api-node/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default [
'**/*.tfstate',
'**/*.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
**/*.tfstate
**/*.unsealed.yaml
**/.DS_Store
**/*.duckdb
**/.env.development.local
**/.env.production.local
**/.gitkeep
Expand Down
2 changes: 1 addition & 1 deletion data-storage/hm-duckdb/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def save_to_duckdb(df: pd.DataFrame, db_path: str) -> None:
def query_from_duckdb(db_path: str, age: int) -> list[tuple[str, int]]:
with duckdb.connect(db_path) as conn:
return conn.execute(
"SELECT name, age FROM people WHERE age > ?", [age]
"select name, age from people where age > ?", [age]
).fetchall()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = [
'**/*.tfstate',
'**/*.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
def show_version_from_file(iads_config: Any, iads_config_path: Path) -> None:
try:
version = iads_config.VersionFromFile(iads_config_path)
logging.info(f"Version from file: {version}")
logging.info(f"{version = }")
except Exception as e:
logging.error(f"Could not get version from {iads_config_path}: {e}")
logging.error(f"{iads_config_path = }, {e = }")


def execute_query(iads_config: Any, query: str) -> None:
try:
logging.info(f"Executing: {query}")
logging.info(f"{query = }")
results: list[Any] | None = iads_config.Query(query)
if results:
for result in results:
logging.info(f"Result: {result}")
logging.info(f"{result = }")
except Exception as e:
logging.error(f"Query failed: {e}")
logging.error(f"{e = }")


def process_config(iads_config_path: Path) -> None:
Expand All @@ -34,14 +34,13 @@ def process_config(iads_config_path: Path) -> None:
show_version_from_file(iads_config, iads_config_path)
iads_config.Open(iads_config_path, True)

# Execute queries
execute_query(iads_config, "select * from Desktops")
execute_query(iads_config, "select System.RowNumber from Desktops")
execute_query(iads_config, "select Parameter from ParameterDefaults")

iads_config.Close(True)
except Exception as e:
logging.error(f"Error occurred: {e}")
logging.error(f"{e = }")
finally:
# Clean up COM resources
if iads_config:
Expand All @@ -50,10 +49,10 @@ def process_config(iads_config_path: Path) -> None:


def main() -> None:
logging.basicConfig(level=logging.INFO)
iads_config_path = Path("pfConfig")
process_config(iads_config_path)


if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
main()
1 change: 1 addition & 0 deletions ethereum/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default [
'**/*.tfstate',
'**/*.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down
1 change: 1 addition & 0 deletions mobile/mobile-react-native/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default [
'**/*.tfstate',
'**/*.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down
1 change: 1 addition & 0 deletions web-cypress/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default [
'**/**.tfstate',
'**/**.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down
1 change: 1 addition & 0 deletions web/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default [
'**/*.tfstate',
'**/*.unsealed.yaml',
'**/.DS_Store',
'**/*.duckdb',
'**/.env.development.local',
'**/.env.production.local',
'**/.gitkeep',
Expand Down

0 comments on commit 78c2d09

Please sign in to comment.