Skip to content

Commit 5bf8f3b

Browse files
committed
✨ include a default isort configuration
1 parent d4d2f7c commit 5bf8f3b

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.moban.dt/local-README.rst.jj2

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ update accurately using `moban`_. Here is a list of features:
1414
#. core python package
1515
#. test configuration setup
1616
#. ready to commit github repository
17-
#. automated upload to pypi through twine
17+
#. automated upload to pypi via github actions
1818
#. version management through jinja2
19-
#. automated github release through gease
20-
19+
#. automatic extraction of github contributors
20+
#. semi-automatic change log generation
2121

2222
It is used with `yehua <https://github.com/chfw/yehua>`_.
2323
Organisations using it:
@@ -108,22 +108,6 @@ In order to make moban updates: please call `make`.
108108
User guides
109109
================================================================================
110110

111-
Release and publish from command line
112-
--------------------------------------------------------------------------------
113-
114-
In order to run, `python setup.py publish`, you will have setup `.pypirc` in
115-
your home folder as::
116-
117-
[distutils]
118-
index-servers =
119-
pypi
120-
121-
[pypi]
122-
username=your_name
123-
password=your_password
124-
125-
126-
And you need to configure `gease`.
127111

128112
Auto publishing via github action
129113
--------------------------------------------------------------------------------
@@ -153,6 +137,11 @@ Using dependency markers in `setup.py`
153137
In order to use dependency markers in `setup.py`, add `setup_use_markers: true`
154138
in your `mobanfile.
155139

140+
Auto generation of contributors
141+
--------------------------------------------------------------------------------
142+
143+
You must specify an author in your configuration file, otherwise contributors
144+
will include author.
156145

157146
Developer Guides
158147
================================================================================

templates/isort.cfg.jj2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[settings]
2+
line_length=79
3+
# Ignore generated files
4+
skip=setup.py, {{project_name}}/__init__.py
5+
known_third_party={% for dependency in dependencies: -%}{{dependency}},{%- endfor %}mock, nose
6+
indent=' '
7+
multi_line_output=3
8+
length_sort=1
9+
include_trailing_comma=true
10+
default_section=FIRSTPARTY
11+
no_lines_before=LOCALFOLDER
12+
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

0 commit comments

Comments
 (0)