Skip to content

Commit

Permalink
Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Feb 17, 2023
1 parent 5a599a8 commit c5f027f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ instance/
lib/
parts/
var/
# Docs
docs/Makefile
docs/make.bat
docs/doctrees
docs/_build
# Tox
.tox
# mxdev
constraints-mxdev.txt
requirements-mxdev.txt
8 changes: 7 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
include *.txt
include *.rst
include *.md
include *.yaml
include pyproject.toml
include Makefile
include mx.ini

recursive-include docs *
recursive-include plone *

global-exclude *pyc

recursive-exclude news *
recursive-exclude docs/_build *
exclude news
exclude constraints-mxdev.txt
exclude requirements-mxdev.txt
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ help: ## This help message
bin/pip:
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
$(PYTHON) -m venv .
bin/pip install -U "pip" "wheel" "cookiecutter" "mxdev"
bin/pip install -U "pip" "wheel" "cookiecutter" "mxdev" "tox"

.PHONY: config
config: bin/pip ## Create instance configuration
Expand All @@ -71,10 +71,10 @@ clean: ## Remove old virtualenv and creates a new one
start: ## Start a Plone instance on localhost:8080
PYTHONWARNINGS=ignore ./bin/runwsgi instance/etc/zope.ini

# Tests
.PHONY: test
test: ## run tests
bin/pytest --disable-warnings
# Lint
.PHONY: lint
lint: bin/pip ## Lint codebase
bin/tox -e lint

# Docs
bin/sphinx-build: bin/pip
Expand Down

0 comments on commit c5f027f

Please sign in to comment.