Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STY] use isort #168

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ repos:
- id: codespell
args: [--config, ./.codespellrc]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black]

- repo: https://github.com/psf/black
rev: "24.1.1"
hooks:
- id: black

- repo: https://github.com/asottile/reorder-python-imports
rev: "v3.12.0"
hooks:
- id: reorder-python-imports

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
Expand Down
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ pytest
jupyter-book
osfclient
rich
black
isort
requests
ruamel.yaml
cffconvert
plotly
flake8
pre-commit
5 changes: 1 addition & 4 deletions scripts/create_projects_table.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import json

import pandas as pd
from utils import bhg_log
from utils import list_labels_in_projects
from utils import load_repositories_info
from utils import root_dir
from utils import bhg_log, list_labels_in_projects, load_repositories_info, root_dir

log_level = "INFO"

Expand Down
4 changes: 1 addition & 3 deletions scripts/generate_citation_cff.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import pandas as pd
from cffconvert.cli.create_citation import create_citation
from cffconvert.cli.validate_or_write_output import validate_or_write_output
from utils import load_citation
from utils import root_dir
from utils import write_citation
from utils import load_citation, root_dir, write_citation


def return_author_list_for_cff(contributors):
Expand Down
13 changes: 8 additions & 5 deletions scripts/generate_figures.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
"""Generate figures for the projects and timeline."""

from typing import Union

import pandas as pd
import plotly.express as px
from rich import print
from utils import get_timeline
from utils import list_labels_in_projects
from utils import list_x_in_projects
from utils import load_hackathon_projects
from utils import root_dir
from utils import (
get_timeline,
list_labels_in_projects,
list_x_in_projects,
load_hackathon_projects,
root_dir,
)

show = True

Expand Down
1 change: 1 addition & 0 deletions scripts/generate_md_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate the contributors and acknowledgments tables for the book."""

from pathlib import Path

import pandas as pd
Expand Down
5 changes: 2 additions & 3 deletions scripts/get_projects_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
in the same directory as this script.

"""

import json
from pathlib import Path

import requests
from utils import bhg_log
from utils import load_repositories_info
from utils import root_dir
from utils import bhg_log, load_repositories_info, root_dir

# only run on repositories in this list
INCLUDE = ["global2023"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_site_labels.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Update the list of issue labels based of the list of brainhack sites"""

import json

import pandas as pd
from utils import load_site_labels
from utils import root_dir
from utils import load_site_labels, root_dir

label_color = "d4c5f9"

Expand Down