setup.cfg

Info

Parent directory

/

Last update

Modified — 2020-10-05 10:51:49 +0200

Last source

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[metadata]
name = isshub
description = Yout essential Git.Hub.Lab companion
long_description = file:README.rst
version = 0
author = Stéphane "Twidi" Angel
author_email = s.angel@twidi.com
license = MIT
classifiers =
    Development Status :: 2 - Pre-Alpha
    License :: OSI Approved :: MIT License
    Programming Language :: Python
    Programming Language :: Python :: 3
    Programming Language :: Python :: 3.8
    Programming Language :: Python :: 3 :: Only
keywords =
    issues
    github
    gitlab
url = https://github.com/Isshub-io/isshub
requires-python = >=3.8

[options]
zip_safe = True
packages = find:
install_requires =
    attrs

[options.packages.find]
exclude =
    tests
    *.tests
    *.tests.*
[options.extras_require]
dev =
    ipython
    mypy
    wheel
tests =
    faker
    faker-enum
    factory-boy
    pytest
    pytest-bdd
    pytest-cov
    pytest-lazy-fixture
    pytest-sugar
lint=
    black
    colorama
    flake8
    flake8-bugbear
    flake8-comprehensions
    flake8-docstrings
    flake8-formatter-abspath
    gitpython
    isort
    pycodestyle
    pydocstyle
    pylint
docs =
    cached-property
    pydriller
    Pygments
    rstcheck
    sphinx
    sphinx-autodoc-typehints
    sphinx-gherkindoc
    sphinx_rtd_theme
    sphinxprettysearchresults

[mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
# because of django models for example
disallow_subclassing_any = false
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = true
python_version = 3.6
strict_optional = true
warn_incomplete_stub = true
plugins = isshub.domain.utils.mypy_plugin

[mypy-isshub.*.tests.*]
ignore_errors = True

[mypy-isshub.domain.utils.mypy_plugin]
ignore_errors = True


[flake8]
ignore =
    # Line too long: we let black manage it
    E501
    # Line break occurred before a binary operator: we let black manage it
    W503
    # Allow assigning lambda expressions
    E731
    # Ignore line length, handled by black
    B950
max-complexity = 15
select =
    # flake8 error class
    F
    # mccabe plugin
    C
    # pycodestyle plugin
    E
    W
    # docstrings (using pydocstyle) plugin
    D
    # mypy plugin
    T4
    # bugbear plugin
    B
    B9
    B950
    # pep3101 (enforce .format over %) plugin
    S001
exclude =
    manage.py
    stubs.py
    */migrations/*.py
    docs/
    *.egg-info
    dist/
    build/
    ci/
    test_*.py
per-file-ignores =
    # ignore mypy missing annotations in tests
    test_*:T4
    factories.py:T4
    isshub/domain/utils/entity.py:T4

[pycodestyle]
max-line-length = 99

[tool:pytest]
addopts =
    --cov=isshub
    --cov-report term-missing:skip-covered
    --doctest-modules
    --ignore setup.py
    --ignore docs
    --ignore ci
    --pyargs

[coverage:run]
branch = True

[coverage:report]
exclude_lines =
    raise NotImplementedError

[isort]
combine_as_imports=1
include_trailing_comma=true
indent='    '
known_thirdparty_python=factory,pytest,pytest_bdd
known_first_party=isshub
line_length=88
lines_after_imports=2
multi_line_output=3
sections=FUTURE,STDLIB,THIRDPARTY_PYTHON,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
use_parentheses=1

Changes

fix(entity): id changed from int to uuid4, renamed to identifier

Commit
Hash

79f704bde4575a9ddeb623d67d8965a62138adc9

Date

2020-10-05 10:51:49 +0200

Type

Modified

Stats

+2 -1

@@ -98,7 +98,8 @@ ignore =
     W503
     # Allow assigning lambda expressions
     E731
-max-line-length = 99
+    # Ignore line length, handled by black
+    B950
 max-complexity = 15
 select =
     # flake8 error class

style(mypy): Remove most “type: ignore” pragmas

Commit
Hash

76638c3d09c47d58febbc9e2e2cc80e84c98ac33

Date

2020-10-04 20:36:50 +0200

Type

Modified

Stats

+3 -1

@@ -81,13 +81,15 @@ ignore_missing_imports = true
 python_version = 3.6
 strict_optional = true
 warn_incomplete_stub = true
+plugins = isshub.domain.utils.mypy_plugin

 [mypy-isshub.*.tests.*]
 ignore_errors = True

-[mypy-isshub.domain.utils.entity]
+[mypy-isshub.domain.utils.mypy_plugin]
 ignore_errors = True

+
 [flake8]
 ignore =
     # Line too long: we let black manage it

docs(bdd): Add BDD scenarios to documentation

Commit
Hash

f5cfe92b893776ba217bef708951d86cdeebb686

Date

2020-09-27 22:43:49 +0200

Type

Modified

Stats

+1 -0

@@ -65,6 +65,7 @@ docs =
     rstcheck
     sphinx
     sphinx-autodoc-typehints
+    sphinx-gherkindoc
     sphinx_rtd_theme
     sphinxprettysearchresults

build(python): Update minimal python version to 3.8

Commit
Hash

1dd172eed252bdfb4d76a277899dbd5043254a25

Date

2020-09-26 13:37:49 +0200

Type

Modified

Stats

+1 -2

@@ -11,7 +11,6 @@ classifiers =
     License :: OSI Approved :: MIT License
     Programming Language :: Python
     Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3 :: Only
 keywords =
@@ -19,7 +18,7 @@ keywords =
     github
     gitlab
 url = https://github.com/Isshub-io/isshub
-requires-python = >=3.7
+requires-python = >=3.8

 [options]
 zip_safe = True

chore: Fix breaking changes from updated dependencies

Commit
Hash

7c6dfe01ac4ffbaac21d5d3836d5fda9c8391cf7

Date

2020-09-25 22:54:00 +0200

Type

Modified

Stats

+1 -5

@@ -54,8 +54,6 @@ lint=
     flake8-comprehensions
     flake8-docstrings
     flake8-formatter-abspath
-    flake8-imports
-    flake8-mypy
     gitpython
     isort
     pycodestyle
@@ -156,7 +154,6 @@ exclude_lines =

 [isort]
 combine_as_imports=1
-default_section=THIRDPARTY
 include_trailing_comma=true
 indent='    '
 known_thirdparty_python=factory,pytest,pytest_bdd
@@ -164,6 +161,5 @@ known_first_party=isshub
 line_length=88
 lines_after_imports=2
 multi_line_output=3
-not_skip = __init__.py
-sections=FUTURE,STDLIB,THIRDPARTY_PYTHON,DRF,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
+sections=FUTURE,STDLIB,THIRDPARTY_PYTHON,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
 use_parentheses=1

feat(namespace): Add Namespace entity a kind field

Commit
Hash

a6b70f9e6649bbb656f3df110c0518c583e63336

Date

2019-06-07 21:03:51 +0200

Type

Modified

Stats

+2 -0

@@ -38,6 +38,8 @@ dev =
     mypy
     wheel
 tests =
+    faker
+    faker-enum
     factory-boy
     pytest
     pytest-bdd

feat(namespace): Add Namespace entity in core domain context

Commit
Hash

3a2dd3cc6f6de1fa1b03db95eaa357628824f075

Date

2019-06-07 21:03:50 +0200

Type

Modified

Stats

+1 -0

@@ -42,6 +42,7 @@ tests =
     pytest
     pytest-bdd
     pytest-cov
+    pytest-lazy-fixture
     pytest-sugar
 lint=
     black

feat(repository): Introduce entities validation (for Repository entity)

Commit
Hash

86ad505796b742a391684e2ef93695fdfb077abb

Date

2019-06-07 21:03:50 +0200

Type

Modified

Stats

+6 -0

@@ -24,6 +24,8 @@ requires-python = >=3.7
 [options]
 zip_safe = True
 packages = find:
+install_requires =
+    attrs

 [options.packages.find]
 exclude =
@@ -82,6 +84,9 @@ warn_incomplete_stub = true
 [mypy-isshub.*.tests.*]
 ignore_errors = True

+[mypy-isshub.domain.utils.entity]
+ignore_errors = True
+
 [flake8]
 ignore =
     # Line too long: we let black manage it
@@ -124,6 +129,7 @@ per-file-ignores =
     # ignore mypy missing annotations in tests
     test_*:T4
     factories.py:T4
+    isshub/domain/utils/entity.py:T4

 [pycodestyle]
 max-line-length = 99

feat(repository): Add 1st domain context (core) and entity (Repository)

Commit
Hash

37d8930e4da80b776842d3834d6bf81f860c5692

Date

2019-06-07 21:03:50 +0200

Type

Modified

Stats

+4 -1

@@ -28,12 +28,15 @@ packages = find:
 [options.packages.find]
 exclude =
     tests
+    *.tests
+    *.tests.*
 [options.extras_require]
 dev =
     ipython
     mypy
     wheel
 tests =
+    factory-boy
     pytest
     pytest-bdd
     pytest-cov
@@ -116,7 +119,7 @@ exclude =
     dist/
     build/
     ci/
-    test_testing.py
+    test_*.py
 per-file-ignores =
     # ignore mypy missing annotations in tests
     test_*:T4

tests: Remove pure testing tests

Commit
Hash

3fcf835fa084ce949b1daad4290365f7b74c70e3

Date

2019-06-03 15:50:46 +0200

Type

Modified

Stats

+0 -4

@@ -79,10 +79,6 @@ warn_incomplete_stub = true
 [mypy-isshub.*.tests.*]
 ignore_errors = True

-[mypy-test_testing]
-ignore_errors = True
-
-
 [flake8]
 ignore =
     # Line too long: we let black manage it

tests(bdd): Enbrace behavior driven development

Commit
Hash

c3d850c1fe495dd31e2277f670cc90e823e0b593

Date

2019-06-03 13:55:01 +0200

Type

Modified

Stats

+1 -0

@@ -35,6 +35,7 @@ dev =
     wheel
 tests =
     pytest
+    pytest-bdd
     pytest-cov
     pytest-sugar
 lint=

docs(git): Add git commits to documentation

Commit
Hash

0a048252b817f1ddf14dcc2b318fac4335a27b89

Date

2019-06-03 13:54:59 +0200

Type

Modified

Stats

+4 -0

@@ -53,6 +53,10 @@ lint=
     pydocstyle
     pylint
 docs =
+    cached-property
+    pydriller
+    Pygments
+    rstcheck
     sphinx
     sphinx-autodoc-typehints
     sphinx_rtd_theme

style(git): Force format of git commit messages

Commit
Hash

4467a1f65e3ad02747eb4f433e3d7b197e598aec

Date

2019-06-03 13:54:59 +0200

Type

Modified

Stats

+3 -0

@@ -39,6 +39,7 @@ tests =
     pytest-sugar
 lint=
     black
+    colorama
     flake8
     flake8-bugbear
     flake8-comprehensions
@@ -46,6 +47,7 @@ lint=
     flake8-formatter-abspath
     flake8-imports
     flake8-mypy
+    gitpython
     isort
     pycodestyle
     pydocstyle
@@ -129,6 +131,7 @@ addopts =
     --doctest-modules
     --ignore setup.py
     --ignore docs
+    --ignore ci
     --pyargs

 [coverage:run]

style: Add mypy for better code quality

Commit
Hash

141b284a4c9579ccaf65b84b68964385a0c7f469

Date

2019-05-27 17:14:12 +0200

Type

Modified

Stats

+28 -0

@@ -31,6 +31,7 @@ exclude =
 [options.extras_require]
 dev =
     ipython
+    mypy
     wheel
 tests =
     pytest
@@ -44,6 +45,7 @@ lint=
     flake8-docstrings
     flake8-formatter-abspath
     flake8-imports
+    flake8-mypy
     isort
     pycodestyle
     pydocstyle
@@ -54,6 +56,26 @@ docs =
     sphinx_rtd_theme
     sphinxprettysearchresults

+[mypy]
+check_untyped_defs = true
+disallow_incomplete_defs = true
+# because of django models for example
+disallow_subclassing_any = false
+disallow_untyped_calls = true
+disallow_untyped_decorators = true
+disallow_untyped_defs = true
+ignore_missing_imports = true
+python_version = 3.6
+strict_optional = true
+warn_incomplete_stub = true
+
+[mypy-isshub.*.tests.*]
+ignore_errors = True
+
+[mypy-test_testing]
+ignore_errors = True
+
+
 [flake8]
 ignore =
     # Line too long: we let black manage it
@@ -74,6 +96,8 @@ select =
     W
     # docstrings (using pydocstyle) plugin
     D
+    # mypy plugin
+    T4
     # bugbear plugin
     B
     B9
@@ -90,6 +114,10 @@ exclude =
     build/
     ci/
     test_testing.py
+per-file-ignores =
+    # ignore mypy missing annotations in tests
+    test_*:T4
+    factories.py:T4

 [pycodestyle]
 max-line-length = 99

style: Add black and isort to ensure code quality

Commit
Hash

2de7ffd18c5651d3361139cca60129dbf3ff184e

Date

2019-05-27 17:14:12 +0200

Type

Modified

Stats

+16 -0

@@ -37,12 +37,14 @@ tests =
     pytest-cov
     pytest-sugar
 lint=
+    black
     flake8
     flake8-bugbear
     flake8-comprehensions
     flake8-docstrings
     flake8-formatter-abspath
     flake8-imports
+    isort
     pycodestyle
     pydocstyle
     pylint
@@ -107,3 +109,17 @@ branch = True
 [coverage:report]
 exclude_lines =
     raise NotImplementedError
+
+[isort]
+combine_as_imports=1
+default_section=THIRDPARTY
+include_trailing_comma=true
+indent='    '
+known_thirdparty_python=factory,pytest,pytest_bdd
+known_first_party=isshub
+line_length=88
+lines_after_imports=2
+multi_line_output=3
+not_skip = __init__.py
+sections=FUTURE,STDLIB,THIRDPARTY_PYTHON,DRF,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
+use_parentheses=1

style: Add flake8 and pylint to ensure code quality

Commit
Hash

4458a00cdd0c52cfbc504d9352a4f38d569c5986

Date

2019-05-27 17:14:11 +0200

Type

Modified

Stats

+50 -0

@@ -36,12 +36,62 @@ tests =
     pytest
     pytest-cov
     pytest-sugar
+lint=
+    flake8
+    flake8-bugbear
+    flake8-comprehensions
+    flake8-docstrings
+    flake8-formatter-abspath
+    flake8-imports
+    pycodestyle
+    pydocstyle
+    pylint
 docs =
     sphinx
     sphinx-autodoc-typehints
     sphinx_rtd_theme
     sphinxprettysearchresults

+[flake8]
+ignore =
+    # Line too long: we let black manage it
+    E501
+    # Line break occurred before a binary operator: we let black manage it
+    W503
+    # Allow assigning lambda expressions
+    E731
+max-line-length = 99
+max-complexity = 15
+select =
+    # flake8 error class
+    F
+    # mccabe plugin
+    C
+    # pycodestyle plugin
+    E
+    W
+    # docstrings (using pydocstyle) plugin
+    D
+    # bugbear plugin
+    B
+    B9
+    B950
+    # pep3101 (enforce .format over %) plugin
+    S001
+exclude =
+    manage.py
+    stubs.py
+    */migrations/*.py
+    docs/
+    *.egg-info
+    dist/
+    build/
+    ci/
+    test_testing.py
+
+[pycodestyle]
+max-line-length = 99
+
 [tool:pytest]
 addopts =
     --cov=isshub

tests: Setup testing tools with pytest

Commit
Hash

2342faaf808c9d6c1baf00f4558e9bde62bfee3c

Date

2019-05-27 17:14:11 +0200

Type

Modified

Stats

+24 -0

@@ -24,12 +24,36 @@ requires-python = >=3.7
 [options]
 zip_safe = True
 packages = find:
+
+[options.packages.find]
+exclude =
+    tests
 [options.extras_require]
 dev =
     ipython
     wheel
+tests =
+    pytest
+    pytest-cov
+    pytest-sugar
 docs =
     sphinx
     sphinx-autodoc-typehints
     sphinx_rtd_theme
     sphinxprettysearchresults
+
+[tool:pytest]
+addopts =
+    --cov=isshub
+    --cov-report term-missing:skip-covered
+    --doctest-modules
+    --ignore setup.py
+    --ignore docs
+    --pyargs
+
+[coverage:run]
+branch = True
+
+[coverage:report]
+exclude_lines =
+    raise NotImplementedError

docs: Documentation generation

Commit
Hash

91e6919e3713e0ac8945b3be8ce0140d7cb933ed

Date

2019-05-27 17:14:11 +0200

Type

Modified

Stats

+5 -0

@@ -28,3 +28,8 @@ packages = find:
 dev =
     ipython
     wheel
+docs =
+    sphinx
+    sphinx-autodoc-typehints
+    sphinx_rtd_theme
+    sphinxprettysearchresults

chore: Base of Isshub project

Commit
Hash

663f485247adbd4df9b50dec328b6607887e0689

Date

2019-05-27 17:14:11 +0200

Type

Added

Stats

+30 -0

@@ -0,0 +1,30 @@
+[metadata]
+name = isshub
+description = Yout essential Git.Hub.Lab companion
+long_description = file:README.rst
+version = 0
+author = Stéphane "Twidi" Angel
+author_email = s.angel@twidi.com
+license = MIT
+classifiers =
+    Development Status :: 2 - Pre-Alpha
+    License :: OSI Approved :: MIT License
+    Programming Language :: Python
+    Programming Language :: Python :: 3
+    Programming Language :: Python :: 3.7
+    Programming Language :: Python :: 3.8
+    Programming Language :: Python :: 3 :: Only
+keywords =
+    issues
+    github
+    gitlab
+url = https://github.com/Isshub-io/isshub
+requires-python = >=3.7
+
+[options]
+zip_safe = True
+packages = find:
+[options.extras_require]
+dev =
+    ipython
+    wheel