Skip to content

Commit

Permalink
Replace TravisCI -> CircleCI (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
osantana authored Jan 6, 2021
1 parent e7f16af commit 62b12e4
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 75 deletions.
4 changes: 0 additions & 4 deletions .ci/deps.linux.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .ci/deps.osx.sh

This file was deleted.

1 change: 0 additions & 1 deletion .ci/pre.linux.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .ci/pre.osx.sh

This file was deleted.

33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2.1

orbs:
python: circleci/[email protected]

jobs:
lint-and-test:
executor: python/default
steps:
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Lint
command: flake8 prettyconf tests
- run:
name: Test
command: |
mkdir test-results
pytest --junitxml=test-results/junit.xml
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
- python/dist
- run:
name: Coverage
command: coveralls

workflows:
main:
jobs:
- lint-and-test
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ omit =
*/site-packages/ordereddict.py
*/site-packages/nose/*
*/unittest2/*

exclude_lines =
pragma: no cover
1 change: 0 additions & 1 deletion .coverrals.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test:
python setup.py pytest
pytest

lint:
flake8 prettyconf tests
Expand Down
2 changes: 1 addition & 1 deletion prettyconf/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, loaders=None):
self.loaders = loaders

def __repr__(self):
loaders = ', '.join([repr(l) for l in self.loaders])
loaders = ', '.join([repr(loader) for loader in self.loaders])
return '{}(loaders=[{}])'.format(self.__class__.__name__, loaders)

def __call__(self, item, cast=lambda v: v, **kwargs):
Expand Down

0 comments on commit 62b12e4

Please sign in to comment.