Skip to content

Commit 2a5d2a5

Browse files
committed
chore(opytimizer): Adds pre-commit files and specifications.
1 parent 5cc64c6 commit 2a5d2a5

File tree

6 files changed

+59
-0
lines changed

6 files changed

+59
-0
lines changed

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "pip"
7+
directory: "/"
8+
schedule:
9+
interval: "monthly"
10+
assignees:
11+
- "gugarosa"
12+
labels:
13+
- "dependencies"
14+
15+
- package-ecosystem: "pip"
16+
directory: "/docs/"
17+
schedule:
18+
interval: "monthly"
19+
assignees:
20+
- "gugarosa"
21+
labels:
22+
- "docs"
23+
- "dependencies"

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.1.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: ['--maxkb=1000']
7+
- id: check-case-conflict
8+
- id: check-docstring-first
9+
- id: check-merge-conflict
10+
- id: check-yaml
11+
- id: detect-private-key
12+
- id: trailing-whitespace
13+
- id: requirements-txt-fixer
14+
- repo: https://github.com/PyCQA/isort
15+
rev: 5.10.1
16+
hooks:
17+
- id: isort
18+
- repo: https://github.com/psf/black
19+
rev: 22.3.0
20+
hooks:
21+
- id: black
22+
- repo: https://github.com/PyCQA/flake8
23+
rev: 4.0.1
24+
hooks:
25+
- id: flake8

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.black]
2+
line-length = 88

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ matplotlib>=3.3.4
44
networkx>=2.5.1
55
numpy>=1.19.5
66
opytimark>=1.0.7
7+
pre-commit>=2.17.0
78
pylint>=2.7.2
89
pytest>=6.2.2
910
tqdm>=4.49.0

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203, E402, E501, F401, F407
4+
5+
[isort]
6+
profile = black
7+
18
[metadata]
29
description-file = README.md

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'networkx>=2.5.1',
1919
'numpy>=1.19.5',
2020
'opytimark>=1.0.7',
21+
'pre-commit>=2.17.0',
2122
'pylint>=2.7.2',
2223
'pytest>=6.2.2',
2324
'tqdm>=4.49.0'

0 commit comments

Comments
 (0)