Skip to content

Commit

Permalink
upgrade requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupin1998 committed Apr 12, 2023
1 parent 99f49de commit 5295175
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
exclude_lines =
@abstractmethod
@abc.abstractmethod
raise NotImplementedError
69 changes: 69 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
exclude: ^tests/data/
repos:
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.11.5
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: double-quote-string-fixer
- id: check-merge-conflict
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.9
hooks:
- id: mdformat
args: ["--number", "--table-width", "200", '--disable-escape', 'backslash', '--disable-escape', 'link-enclosure']
additional_dependencies:
- "mdformat-openmmlab>=0.0.4"
- mdformat_frontmatter
- linkify-it-py
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/myint/docformatter
rev: v1.3.1
hooks:
- id: docformatter
args: ["--in-place", "--wrap-descriptions", "79"]
- repo: https://github.com/open-mmlab/pre-commit-hooks
rev: v0.4.0
hooks:
- id: check-copyright
args: ["mmpretrain", "tests", "demo", "tools", "--excludes", "mmpretrain/.mim/", "--ignore-file-not-found-error"]
- repo: local
hooks:
- id: metafile
args: ['--skip', 'flops-param']
name: metafile
description: Check the format of metafile
entry: python .dev_scripts/check_metafile.py
language: python
files: (metafile)\.(yml)$
additional_dependencies:
- modelindex
# - repo: local
# hooks:
# - id: clang-format
# name: clang-format
# description: Format files with ClangFormat
# entry: clang-format -style=google -i
# language: system
# files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version: 2

formats: []
formats:
- epub

python:
version: 3.7
version: 3.8
install:
- requirements: requirements/docs.txt
- requirements: requirements/readthedocs.txt
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021-2022 CAIRI AI Lab.
Copyright 2021-2023 CAIRI AI Lab.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r requirements/optional.txt
-r requirements/runtime.txt
-r requirements/tests.txt
9 changes: 6 additions & 3 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
docutils==0.16.0
docutils==0.18.1
markdown>=3.4.0
myst_parser
-e git+https://github.com/Westlake-AI/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
recommonmark
sphinx==4.0.2
sphinx==4.0.2
sphinx==6.1.3
sphinx-copybutton
sphinx-notfound-page
sphinx_markdown_tables>=0.0.16
sphinx_rtd_theme==0.5.2
sphinx-tabs
sphinxcontrib-jquery
tabulate
1 change: 1 addition & 0 deletions requirements/mminstall.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mmcls >= 0.21.0
mmcv-full>=1.4.7
mmengine>=0.4.0,<1.0.0
mmdet >= 2.16.0
mmsegmentation >= 0.20.2
5 changes: 4 additions & 1 deletion requirements/optional.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
faiss-gpu>=1.6.1
albumentations>=0.3.2 --no-binary qudida,albumentations # For Albumentations data transform
faiss-gpu>=1.6.1 # For DeepCluster and ODC
grad-cam >= 1.3.7 # For CAM visualization
requests # For torchserve
scikit-image
2 changes: 1 addition & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
attrs
einops
future
importlib-metadata
matplotlib
mmcv-full>=1.4.7
numpy
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def add_mim_extension():
long_description_content_type='text/markdown',
author='CAIRI Westlake University Contributors',
author_email='[email protected]',
keywords='mixup classification, semi- and self-supervised learning',
keywords='computer vision, image classification, '
'mixup classification, semi- and self-supervised learning',
url='https://github.com/Westlake-AI/openmixup',
packages=find_packages(exclude=('configs', 'tools', 'demo')),
classifiers=[
Expand All @@ -181,6 +182,9 @@ def add_mim_extension():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
license='Apache License 2.0',
tests_require=parse_requirements('requirements/tests.txt'),
Expand Down

0 comments on commit 5295175

Please sign in to comment.