Skip to content

Commit 1b70533

Browse files
authored
Merge pull request #82 from dmlb2000/dev
Add Pre-Commit and Black
2 parents bfad866 + a8bd84d commit 1b70533

File tree

165 files changed

+792590
-430800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+792590
-430800
lines changed

.github/workflows/pre-commit.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run Pre-Commit
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- dev
8+
- main
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: fix-encoding-pragma
6+
- id: check-merge-conflict
7+
- id: end-of-file-fixer
8+
- id: debug-statements
9+
- id: check-added-large-files
10+
- id: check-ast
11+
- id: check-byte-order-marker
12+
- id: check-case-conflict
13+
- id: check-docstring-first
14+
- id: check-executables-have-shebangs
15+
types: [python]
16+
- id: check-vcs-permalinks
17+
- id: check-symlinks
18+
- id: mixed-line-ending
19+
- id: name-tests-test
20+
exclude: tests/test_data
21+
args:
22+
- --pytest-test-first
23+
- id: check-json
24+
- id: pretty-format-json
25+
args:
26+
- --autofix
27+
- --top-keys=_id
28+
- id: check-yaml
29+
- id: sort-simple-yaml
30+
files: '.yaml$'
31+
- id: detect-private-key
32+
- id: trailing-whitespace
33+
- repo: https://github.com/psf/black
34+
rev: 22.8.0
35+
hooks:
36+
- id: black
37+
- repo: https://github.com/Lucas-C/pre-commit-hooks
38+
rev: v1.3.1
39+
hooks:
40+
- id: remove-tabs
41+
exclude: '(\.tsv|Makefile)$'
42+
- id: remove-crlf

.travis.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
language: python
2-
python:
3-
- 3.6
4-
- 3.7
5-
- 3.8
6-
before_install:
7-
- python --version
8-
- pip install -U pip
9-
- pip install -U pytest
10-
- pip install -U importlib_metadata
11-
- pip install codecov
12-
install:
13-
- pip install ".[test]" . # install package + test dependencies
14-
script: pytest # run tests
15-
after_success:
16-
- codecov # submit coverage
1+
language: python
2+
python:
3+
- 3.6
4+
- 3.7
5+
- 3.8
6+
before_install:
7+
- python --version
8+
- pip install -U pip
9+
- pip install -U pytest
10+
- pip install -U importlib_metadata
11+
- pip install codecov
12+
install:
13+
- pip install ".[test]" . # install package + test dependencies
14+
script: pytest # run tests
15+
after_success:
16+
- codecov # submit coverage

README.rst

100755100644
+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Installation
3636
ModelSEEDpy will soon be installable via the ``PyPI`` channel::
3737

3838
pip install modelseedpy
39-
39+
4040
but, until then, the repository must cloned::
4141

4242
git clone https://github.com/ModelSEED/ModelSEEDpy.git
@@ -45,13 +45,13 @@ and then locally installed with ``pip``::
4545

4646
cd path/to/modelseedpy
4747
pip install .
48-
48+
4949
The associated ModelSEED Database, which is required for a few packages, is simply downloaded by cloning the GitHub repository::
5050

5151
git clone https://github.com/ModelSEED/ModelSEEDDatabase.git
52-
53-
and the path to this repository is passed as an argument to the corresponding packages.
54-
52+
53+
and the path to this repository is passed as an argument to the corresponding packages.
54+
5555
**Windows users** must separately install the ``pyeda`` module: 1) download the appropriate wheel for your Python version from `this website <https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyeda>`_ ; and 2) install the wheel through the following commands in a command prompt/powershell console::
5656

5757
cd path/to/pyeda/wheel

0 commit comments

Comments
 (0)