Skip to content

Commit 87dcc67

Browse files
authored
Merge pull request #42 from sikepuri-algorithm/dev
Pre-commitやGitHub Actionsを設定
2 parents 9142117 + b112fd4 commit 87dcc67

28 files changed

+714
-1774
lines changed

.github/.typo-ci.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/black.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Black
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: psf/black@stable
15+
with:
16+
jupyter: true

.github/workflows/linter.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#############################
10+
# Start the job on all push #
11+
#############################
12+
on:
13+
push:
14+
pull_request:
15+
branches: [master, main]
16+
17+
###############
18+
# Set the Job #
19+
###############
20+
jobs:
21+
build:
22+
# Name the Job
23+
name: Lint Code Base
24+
# Set the agent to run on
25+
runs-on: ubuntu-latest
26+
27+
##################
28+
# Load all steps #
29+
##################
30+
steps:
31+
##########################
32+
# Checkout the code base #
33+
##########################
34+
- name: Checkout Code
35+
uses: actions/checkout@v3
36+
with:
37+
# Full git history is needed to get a proper
38+
# list of changed files within `super-linter`
39+
fetch-depth: 0
40+
41+
################################
42+
# Run Linter against code base #
43+
################################
44+
- name: Lint Code Base
45+
uses: github/super-linter@v4
46+
env:
47+
VALIDATE_ALL_CODEBASE: false
48+
DEFAULT_BRANCH: master
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/spellcheck.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: static/img/
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.3.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-json
10+
- id: pretty-format-json
11+
args: [--autofix]
12+
- id: check-merge-conflict
13+
- id: check-toml
14+
- id: check-xml
15+
- id: check-yaml
16+
- id: debug-statements
17+
- id: detect-aws-credentials
18+
args: [--allow-missing-credentials]
19+
- id: detect-private-key
20+
- id: end-of-file-fixer
21+
- id: no-commit-to-branch
22+
args: [--branch, main]
23+
- id: requirements-txt-fixer
24+
- id: trailing-whitespace
25+
- repo: https://github.com/pre-commit/mirrors-prettier
26+
rev: v3.0.0-alpha.3
27+
hooks:
28+
- id: prettier
29+
- repo: https://github.com/pre-commit/mirrors-eslint
30+
rev: v8.26.0
31+
hooks:
32+
- id: eslint
33+
- repo: https://github.com/psf/black
34+
rev: 22.10.0
35+
hooks:
36+
- id: black
37+
- id: black-jupyter
38+
- repo: https://github.com/PyCQA/flake8
39+
rev: 5.0.4
40+
hooks:
41+
- id: flake8
42+
- repo: https://github.com/pre-commit/mirrors-autopep8
43+
rev: v1.7.0
44+
hooks:
45+
- id: autopep8
46+
- repo: https://github.com/PyCQA/isort
47+
rev: 5.10.1
48+
hooks:
49+
- id: isort
50+
- repo: https://github.com/markdownlint/markdownlint
51+
rev: v0.12.0
52+
hooks:
53+
- id: markdownlint
54+
- repo: https://github.com/datarootsio/databooks
55+
rev: 1.2.3
56+
hooks:
57+
- id: databooks-meta
58+
- repo: https://github.com/nbQA-dev/nbQA
59+
rev: 1.5.3
60+
hooks:
61+
- id: nbqa-check-ast
62+
- id: nbqa-flake8
63+
- id: nbqa-isort
64+
- id: nbqa-mypy
65+
- id: nbqa-pylint
66+
- id: nbqa-pyupgrade
67+
- id: nbqa-yapf
68+
- id: nbqa-autopep8
69+
- id: nbqa-pydocstyle

Pipfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
pre-commit = "*"
8+
9+
[dev-packages]
10+
11+
[requires]
12+
python_version = "3.10"
13+
python_full_version = "3.10.6"

Pipfile.lock

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)