Skip to content

Commit 93eecc7

Browse files
authored
Merge pull request #143 from jacebrowning/release/v1.2
Release v1.2
2 parents 11362db + 9fd2c7c commit 93eecc7

30 files changed

Lines changed: 216 additions & 154 deletions

.appveyor.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
environment:
2+
global:
3+
RANDOM_SEED: 0
4+
matrix:
5+
- PYTHON_MAJOR: 3
6+
PYTHON_MINOR: 5
7+
18
cache:
29
- env
310

@@ -14,6 +21,6 @@ install:
1421
build: off
1522

1623
test_script:
17-
- make test
1824
- make check
25+
- make test
1926
- make demo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/demo
2+
/tmp
23
*/tests/files/gitman_sources
34

45
# Temporary Python files

.pep8rc renamed to .pycodestyle.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[pep8]
1+
[pycodestyle]
22

33
# E401 multiple imports on one line (checked by PyLint)
44
# E402 module level import not at top of file (checked by PyLint)

.pep257 renamed to .pydocstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[pep257]
1+
[pydocstyle]
22

33
# D211: No blank lines allowed before class docstring
44
add_select = D211

.pylintrc renamed to .pylint.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[MESSAGES CONTROL]
22

3-
disable=locally-disabled,fixme,too-few-public-methods,too-many-public-methods,invalid-name,global-statement,too-many-ancestors,missing-docstring
3+
disable=locally-disabled,fixme,too-few-public-methods,too-many-public-methods,invalid-name,global-statement,too-many-ancestors,missing-docstring,no-member
44

55
[FORMAT]
66

.scrutinizer.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
checks:
2-
python:
3-
code_rating: true
4-
duplicate_code: true
2+
python:
3+
code_rating: true
4+
duplicate_code: true
55
tools:
6-
external_code_coverage: true
7-
pylint:
8-
python_version: 3
9-
config_file: '.pylintrc'
6+
external_code_coverage: true
7+
pylint:
8+
python_version: 3
9+
config_file: '.pylintrc'
10+
filter:
11+
excluded_paths:
12+
- "*/tests/*"

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ after_success:
3030
notifications:
3131
email:
3232
on_success: never
33-
on_failure: change
33+
on_failure: never
File renamed without changes.

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Revision History
22

3+
## 1.2 (2017/01/08)
4+
5+
- Added preliminary Windows support (@StudioEtrange).
6+
37
## 1.1 (2017/01/06)
48

59
- Added coloring to the command-line output.
6-
- Added preliminary Windows support.
710
- Fixed issue where `<dirty>` could be saved as a locked revision.
811

912
## 1.0.2 (2016/07/28)

Makefile

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
PROJECT := GitMan
33
PACKAGE := gitman
44
REPOSITORY := jacebrowning/gitman
5+
6+
# Project paths
57
PACKAGES := $(PACKAGE) tests
6-
CONFIG := $(shell ls *.py)
7-
MODULES := $(shell find $(PACKAGES) -name '*.py') $(CONFIG)
8+
CONFIG := $(wildcard *.py)
9+
MODULES := $(wildcard $(PACKAGE)/*.py)
810

911
# Python settings
1012
ifndef TRAVIS
@@ -62,7 +64,7 @@ HONCHO := $(ACTIVATE) && $(BIN)/honcho
6264
# MAIN TASKS ###################################################################
6365

6466
.PHONY: all
65-
all: doc
67+
all: install
6668

6769
.PHONY: ci
6870
ci: check test demo ## Run all tasks that determine CI status
@@ -78,8 +80,6 @@ demo: install
7880
$(BIN)/gitman list
7981
$(BIN)/gitman lock
8082
$(BIN)/gitman uninstall
81-
$(BIN)/gitman show
82-
- $(BIN)/gitman edit
8383

8484
# SYSTEM DEPENDENCIES ##########################################################
8585

@@ -124,29 +124,24 @@ $(PYTHON):
124124

125125
# CHECKS #######################################################################
126126

127-
PEP8 := $(BIN)/pep8
128-
PEP8RADIUS := $(BIN)/pep8radius
129-
PEP257 := $(BIN)/pep257
130127
PYLINT := $(BIN)/pylint
128+
PYCODESTYLE := $(BIN)/pycodestyle
129+
PYDOCSTYLE := $(BIN)/pydocstyle
131130

132131
.PHONY: check
133-
check: pep8 pep257 pylint ## Run linters and static analysis
134-
135-
.PHONY: pep8
136-
pep8: install ## Check for convention issues
137-
$(PEP8) $(PACKAGES) $(CONFIG) --config=.pep8rc
138-
139-
.PHONY: pep257
140-
pep257: install ## Check for docstring issues
141-
$(PEP257) $(PACKAGES) $(CONFIG)
132+
check: pylint pycodestyle pydocstyle ## Run linters and static analysis
142133

143134
.PHONY: pylint
144135
pylint: install ## Check for code issues
145-
$(PYLINT) $(PACKAGES) $(CONFIG) --rcfile=.pylintrc
136+
$(PYLINT) $(PACKAGES) $(CONFIG) --rcfile=.pylint.ini
137+
138+
.PHONY: pycodestyle
139+
pycodestyle: install ## Check for code conventions
140+
$(PYCODESTYLE) $(PACKAGES) $(CONFIG) --config=.pycodestyle.ini
146141

147-
.PHONY: fix
148-
fix: install
149-
$(PEP8RADIUS) --docformatter --in-place
142+
.PHONY: pydocstyle
143+
pydocstyle: install ## Check for docstring conventions
144+
$(PYDOCSTYLE) $(PACKAGES) $(CONFIG)
150145

151146
# TESTS ########################################################################
152147

@@ -179,12 +174,14 @@ test-unit: install ## Run the unit tests
179174
.PHONY: test-int
180175
test-int: install ## Run the integration tests
181176
@ if test -e $(FAILURES); then TEST_INTEGRATION=true $(PYTEST) $(PYTEST_OPTS_FAILFAST) tests; fi
182-
$(PYTEST) $(PYTEST_OPTS) tests --junitxml=$(REPORTS)/integration.xml
177+
@ rm -rf $(FAILURES)
178+
TEST_INTEGRATION=true $(PYTEST) $(PYTEST_OPTS) tests --junitxml=$(REPORTS)/integration.xml
183179
$(COVERAGE_SPACE) $(REPOSITORY) integration
184180

185181
.PHONY: test-all
186182
test-all: install ## Run all the tests
187183
@ if test -e $(FAILURES); then TEST_INTEGRATION=true $(PYTEST) $(PYTEST_OPTS_FAILFAST) $(PACKAGES); fi
184+
@ rm -rf $(FAILURES)
188185
TEST_INTEGRATION=true $(PYTEST) $(PYTEST_OPTS) $(PACKAGES) --junitxml=$(REPORTS)/overall.xml
189186
$(COVERAGE_SPACE) $(REPOSITORY) overall
190187

0 commit comments

Comments
 (0)