Skip to content

Commit

Permalink
refactor: reorganize configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
engineervix committed Jul 20, 2021
1 parent f49e9e8 commit 41042f4
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 60 deletions.
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

6 changes: 0 additions & 6 deletions .flake8

This file was deleted.

32 changes: 0 additions & 32 deletions .github/dependabot.yml

This file was deleted.

7 changes: 0 additions & 7 deletions cookiecutter-wagtail-vix.code-workspace

This file was deleted.

2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
utilities, specifically:
https://github.com/django/django/blob/master/django/utils/crypto.py
TODO: - Reorganize the private directories and .env files which, do not get added to the repository
TODO: - Reorganize the private directories and .env files which do not get added to the repository
"""

import os
Expand Down
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 88
target-version = ['py36']
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
Expand All @@ -21,7 +25,14 @@ exclude = '''
)/
)
'''

[tool.commitizen]
version = "0.0.1"
version_files = [
"cookiecutter.json",
]
tag_format = "v$major.$minor.$patch"
changelog_file = "CHANGELOG.md"
annotated_tag = true
update_changelog_on_bump = false
# changelog_file = "CHANGELOG.md"
# changelog_incremental = true
5 changes: 0 additions & 5 deletions pytest.ini

This file was deleted.

33 changes: 33 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# --- Individual linter configuration ---------------------------------------

[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude = .git,__pycache__,{{cookiecutter.project_slug}}/,.mypy_cache,.pytest_cache,.tox

# --- pytest configuration --------------------------------------------------

# See warning at https://docs.pytest.org/en/stable/reference/customize.html#setup-cfg
# I put the config here because I somehow couldn't get tox to play nicely with settings in pyproject.toml

[tool:pytest]
testpaths = tests
addopts =
-v --tb=short --cov=.
python_paths =
.
norecursedirs =
.tox .git */migrations/* */static/* docs venv */{{cookiecutter.project_slug}}/*

# --- Coverage configuration ------------------------------------------------

[coverage:run]
omit =
venv/*
{{cookiecutter.project_slug}}/*

[coverage:report]
skip_covered = True
show_missing = True

0 comments on commit 41042f4

Please sign in to comment.