Skip to content

IlyaKozlov/csd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write the code corresponding to flake-8 or fail your unittests.

We do not negotiate with poor formatted code

To install type

pip install -e git+https://github.com/IlyaKozlov/csd.git#egg=csd

Define test class

import os
from typing import List

from style_test import StyleTest


class TestStyle(StyleTest):
    def get_files(self) -> List[str]:
        test_dir = os.path.dirname(__file__)
        source_dir = os.path.join(test_dir, "..", "src")
        result = []
        for directory in [test_dir, source_dir]:
            for file in os.listdir(directory):
                file = os.path.abspath(os.path.join(directory, file))
                if os.path.isfile(file):
                    result.append(file)
        return result

    def test_style(self) -> None:
        self.flake_test()

About

code style dictator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages