10000 Python CI with flake8 and mypy · Issue #13 · suaaa7/samplecode-for-qiita · GitHub
[go: up one dir, main page]

Skip to content

Python CI with flake8 and mypy #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
suaaa7 opened this issue Aug 29, 2020 · 5 comments
Closed

Python CI with flake8 and mypy #13

suaaa7 opened this issue Aug 29, 2020 · 5 comments

Comments

@suaaa7
Copy link
Owner
suaaa7 commented Aug 29, 2020

No description provided.

@suaaa7 suaaa7 changed the title CI with flake8 and mypy Python CI with flake8 and mypy Aug 29, 2020
@suaaa7
Copy link
Owner Author
suaaa7 commented Sep 5, 2020

https://www.youtube.com/watch?v=G1lDk_WKXvY

image

@suaaa7
Copy link
Owner Author
suaaa7 commented Sep 6, 2020
class Sample:
    def __init__(self, x):
        self.x = x
        self.y = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

    def _check_string(self, target):
        return isinstance(target, str)


sample = Sample('sample')
# Access non-public method from outside of class
sample._check_string(120)

@suaaa7
Copy link
Owner Author
suaaa7 commented Sep 6, 2020
.PHONY: all-check
all-check: flake8 mypy test

@suaaa7
Copy link
Owner Author
suaaa7 commented Sep 20, 2020

Python Config

機械学習のconfigを可読性高く設定する方法
https://qiita.com/typecprint/items/4a1f6fae8c527b953c29
Python3.7からは「Data Classes」がクラス定義のスタンダードになるかもしれない
https://qiita.com/tag1216/items/13b032348c893667862a
PythonでYAMLの内容を自動補完する
https://qiita.com/nkriskeeic/items/08151195aac4a1db491a

@suaaa7
Copy link
Owner Author
suaaa7 commented Sep 21, 2020

flake8 動作確認
https://qiita.com/suaaa7/items/ec8a0f943c286eea1fd6

@suaaa7 suaaa7 closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0