Skip to content

Commit

Permalink
Feature/improve lint (#214)
Browse files Browse the repository at this point in the history
* ignore venv when running flake8 and pydocstyle

* run code modifications before checking style
  • Loading branch information
stohrendorf authored Jun 22, 2021
1 parent 05174d2 commit 18cb9be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- Fix typos in Recipes documentation page [PR #212](https://github.com/model-bakers/model_bakery/pull/212)
- Add `venv` to ignored folders of `flake8` and `pydocstyle` [PR#214](https://github.com/model-bakers/model_bakery/pull/214)
- Run `flake8` after code modifications when linting [PR#214](https://github.com/model-bakers/model_bakery/pull/214)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ release:

lint:
@black .
@flake8 .
@isort .
@flake8 .
@pydocstyle .

.PHONY: test release
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ universal = 1
max-line-length = 99
statistics = true
show-source = true
exclude = docs/*
exclude =
docs/*,
venv

[tool:pytest]
addopts = --tb=short -rxs --nomigrations
Expand All @@ -19,7 +21,7 @@ line_length=88

[pydocstyle]
add_ignore = D1
match-dir = (?!test|docs|\.).*
match-dir = (?!test|docs|venv|\.).*

[mypy]
ignore_missing_imports=True
Expand Down

0 comments on commit 18cb9be

Please sign in to comment.