diff --git a/.codeclimate.yml b/.codeclimate.yml index 3d89c6a..1d04a03 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,4 +1,5 @@ -engines: +# Python Engines +engines: duplication: enabled: true config: @@ -6,14 +7,22 @@ engines: - python fixme: enabled: true - markdownlint: - enabled: true pep8: + enabled: true + radon: enabled: true - radon: - enabled: true + markdownlint: + enabled: true + +# Ratings ratings: paths: - - "**.inc" - - "**.module" - - "**.py" \ No newline at end of file + - "**.py" # default for enable Radon analysis + - "**.md" + - "**.inc" + - "**.module" + +# List the files or directories excluded from analysis. +exclude_paths: +- dist/** +- build/** diff --git a/test/__init__.py b/test/__init__.py index 4f7a4c8..00ff8b8 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,11 +1,15 @@ import decimal import json import os -import unittest import datetime from smtpapi import SMTPAPIHeader +try: + import unittest2 as unittest +except ImportError: + import unittest + class TestSMTPAPI(unittest.TestCase): @@ -101,8 +105,7 @@ class TestRepository(unittest.TestCase): def setUp(self): self.required_files = [ - ['./Dockerfile', './docker/Dockerfile'], - ['./docker-compose.yml', './docker/docker-compose.yml'], + './Dockerfile', './.codeclimate.yml', './.env_sample', './ISSUE_TEMPLATE.md',