Skip to content

Commit

Permalink
try to fix docs and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
a.pirogov committed Dec 16, 2021
1 parent 07f7dd1 commit 3e4970b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install python dependencies
run: |
pip install .[dev]
pip install .[docs]
- name: Install Latex compiler
run: |
Expand Down
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ repos:
)$
args: ['-i']


- repo: local
- repo: https://github.com/pycqa/pylint
rev: pylint-2.8.0
hooks:

- id: pylint
name: pylint
entry: pylint
verbose: true
types: [python]
language: system
exclude: '^(docs/)|(examples/)|(fuji_server/models/)'

- repo: local
hooks:
- id: version-number
name: Check version numbers
entry: python ./utils/validate_version_consistency.py
Expand Down
7 changes: 5 additions & 2 deletions fuji_server/controllers/fair_metric_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# -*- coding: utf-8 -*-
"""
FAIR Metric controller.
"""
# -*- coding: utf-8 -*-
################################################################################
# MIT License
#
Expand Down Expand Up @@ -26,8 +30,7 @@


def get_metrics(): # noqa: E501
"""Return all metrics and their definitions
# noqa: E501
"""Return all metrics and their definitions.
:rtype: Metrics
"""
response = Preprocessor.get_metrics()
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ pytest-cov = {version = "^3.0.0", optional = true}
sphinx = {version = "^4.2.0", optional = true}
docutils = {version =">=0.14,<0.18", optional = true}
sphinx-rtd-theme = {version = "^1.0.0", optional = true}
myst-parser = {version= "^0.16.1", optional = true}

[tool.poetry.extras]
report = ["bokeh", "jupyter"]
testing = ["yapf", "pytest", "pre-commit", "pytest-cov", "pylint"]
docs = ["sphinx-rtd-theme", "sphinx", "docutils"]
docs = ["sphinx-rtd-theme", "sphinx", "docutils", "myst-parser"]
dev = ["yapf", "pytest", "pre-commit", "pytest-cov", "pylint", "sphinx-rtd-theme", "sphinx", "docutils"]


Expand Down

0 comments on commit 3e4970b

Please sign in to comment.