Skip to content

Commit

Permalink
Merge pull request #190 from EJEP/migrate_to_datahub
Browse files Browse the repository at this point in the history
Migrate to datahub 2 now with more doc fixing
  • Loading branch information
Emily Price authored Nov 16, 2024
2 parents a85f1af + 6f10ea6 commit 6a611e8
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint
on:
pull_request:
branches:
- "master"
jobs:
black:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install and run linter
run: |
pip install black==22.10.0
black --check --verbose --diff --color -S .
isort:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install and run linter
run: |
pip install isort==5.13.2
isort . --check-only --diff
flake8:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install and run linter
run: |
pip install flake8==7.1.0 flake8-bugbear
flake8
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==24.2.6
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/getting-started.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Getting started
===============

Getting started with DataPoint for Python is simple and you can write a
Getting started with DataHub for Python is simple and you can write a
simple script which prints out data in just 6 lines of Python.

API Key
Expand Down

0 comments on commit 6a611e8

Please sign in to comment.