diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 0000000..ca69cec --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,29 @@ +# This workflow executes several linters on changed files based on languages used in your code base whenever +# you push a code or open a pull request. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/github/super-linter +name: Lint Code Base + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "main" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index d0f760d..213a68f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,4 +11,4 @@ ## v2.0.0 - Complete rewrite of evm collector to use web3.py library. -- Introducing limited support for Conflux, Solana and Cardano \ No newline at end of file +- Introducing limited support for Conflux, Solana and Cardano diff --git a/Dockerfile b/Dockerfile index 455acac..6702301 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim AS base +FROM python:3.13.0rc2-slim AS base WORKDIR /opt/brpc COPY requirements.txt . diff --git a/config/exporter_example/config.yml b/config/exporter_example/config.yml index 3434510..39ce116 100644 --- a/config/exporter_example/config.yml +++ b/config/exporter_example/config.yml @@ -11,7 +11,7 @@ connection_parameters: collector: "evm" # This will load different collectors based on what mode exporter will run with Supported modes are: "evm", "solana", "conflux", "cardano", "bitcoin" endpoints: # List of endpoints with their metadata. - url: wss://example-rpc-1.com/ws # RPC Endpoint websocket endpoint (Must start with wss:// or https://) - provider: Provider1 # Provider (Must be present in allowed providers list. Please check src/settings.py line 24) The purpose is to make sure we do not have same providers spelled differently + provider: Provider1 # Provider (Must be present in allowed providers list. Please check src/settings.py line 24) The purpose is to make sure we do not have same providers spelled differently - url: wss://example-rpc-2.com/ws provider: Provider2 - url: wss://example-rpc-3.com/ws @@ -25,4 +25,4 @@ endpoints: # List of endpoints with their metadata. -## \ No newline at end of file +## diff --git a/config/grafana/provisioning/dashboards/dashboard.yml b/config/grafana/provisioning/dashboards/dashboard.yml index d83b43c..4c387ae 100644 --- a/config/grafana/provisioning/dashboards/dashboard.yml +++ b/config/grafana/provisioning/dashboards/dashboard.yml @@ -9,4 +9,4 @@ providers: editable: true allowUiUpdates: true options: - path: /etc/grafana/provisioning/dashboards \ No newline at end of file + path: /etc/grafana/provisioning/dashboards diff --git a/config/grafana/provisioning/dashboards/demo.json b/config/grafana/provisioning/dashboards/demo.json index 9427421..9334b13 100644 --- a/config/grafana/provisioning/dashboards/demo.json +++ b/config/grafana/provisioning/dashboards/demo.json @@ -778,4 +778,4 @@ "uid": "7ATCvsYnz", "version": 13, "weekStart": "" -} \ No newline at end of file +} diff --git a/config/grafana/provisioning/datasources/datasources.yml b/config/grafana/provisioning/datasources/datasources.yml index bb37f13..a08624a 100644 --- a/config/grafana/provisioning/datasources/datasources.yml +++ b/config/grafana/provisioning/datasources/datasources.yml @@ -8,4 +8,4 @@ datasources: url: http://prometheus:9090 basicAuth: false isDefault: true - editable: true \ No newline at end of file + editable: true diff --git a/config/prometheus/prometheus.yml b/config/prometheus/prometheus.yml index aaa5648..06130ca 100644 --- a/config/prometheus/prometheus.yml +++ b/config/prometheus/prometheus.yml @@ -10,4 +10,4 @@ scrape_configs: - job_name: "exporter" scrape_interval: 5s static_configs: - - targets: ["exporter:8000"] \ No newline at end of file + - targets: ["exporter:8000"]