-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add files * edit python-package-conda.yml
- Loading branch information
Showing
13 changed files
with
270 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
comment: false | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
# Commits pushed to main should not make the overall | ||
# project coverage decrease by more than 1%: | ||
target: auto | ||
threshold: 1% | ||
patch: | ||
default: | ||
# Be tolerant on slight code coverage diff on PRs to limit | ||
# noisy red coverage status on github PRs. | ||
# Note: The coverage stats are still uploaded | ||
# to codecov so that PR reviewers can see uncovered lines | ||
target: auto | ||
threshold: 1% | ||
|
||
codecov: | ||
notify: | ||
# Prevent coverage status to upload multiple times for parallel and long | ||
# running CI pipelines. This configuration is particularly useful on PRs | ||
# to avoid confusion. | ||
after_n_builds: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length = 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[settings] | ||
line_length = 79 | ||
multi_line_output = 3 | ||
include_trailing_comma = True | ||
skip = [".gitignore", ".rst", "examples."] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.2 | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: isort | ||
description: Order imports | ||
language: system | ||
types: [python] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
entry: flake8 | ||
language: system | ||
types: [python] | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
name: black | ||
entry: black | ||
description: Code reformatting | ||
language: system | ||
types: [python] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
language: python | ||
os: linux | ||
dist: xenial | ||
|
||
env: | ||
global: | ||
PIP_PREFER_BINARY=true | ||
|
||
python: | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
|
||
install: | ||
- pip install --upgrade pip | ||
- pip install -r requirements_ci.txt | ||
- pip install pytest | ||
- pip install pytest-cov | ||
- pip install coveralls | ||
|
||
# command to run tests | ||
script: | ||
pytest --cov=pyod/ | ||
|
||
after_success: | ||
- coveralls | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- kq441morita@gmail.com | ||
on_success: never # default: change | ||
on_failure: always # default: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/node@1.1.6 | ||
|
||
jobs: | ||
test: | ||
executor: | ||
name: node/default | ||
|
||
steps: | ||
- checkout | ||
|
||
- node/with-cache: | ||
steps: | ||
- run: npm install | ||
- run: make test-coverage | ||
|
||
# More compact variant without hashsum check | ||
# - run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls | ||
- run: | | ||
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | ||
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt | ||
cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check | ||
tar -xzf coveralls-linux.tar.gz | ||
./coveralls | ||
workflows: | ||
test: | ||
jobs: | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.