Skip to content

Commit e13136e

Browse files
committed
Move configs into pyproject.toml
1 parent d2039b5 commit e13136e

File tree

12 files changed

+43
-28
lines changed

12 files changed

+43
-28
lines changed

.coveragerc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include README.rst
1+
include docs/index.rst
22
include LICENSE
33
include docs/changelog.rst

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ services:
77
container_name: flask-inputfilter
88
volumes:
99
- .:/app
10+
ports:
11+
- "8000:8000"
1012
stdin_open: true
1113
tty: true

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Changed
4747
Added
4848
^^^^^
4949
- Multiple functions to allow a broader usage aside as decorator
50+
5051
- getErrorMessage
5152
- getRawValue
5253
- getRawValues

env_configs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ COPY ../requirements.txt /app
4848

4949
RUN pip install --no-cache-dir -r requirements.txt && pip install tox
5050

51-
COPY .. /app
51+
COPY . /app

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.pytest.ini_options]
6+
filterwarnings = [
7+
"ignore::DeprecationWarning"
8+
]
9+
10+
[tool.tox]
11+
legacy_tox_ini = """
12+
[tox]
13+
envlist = py37, py38, py39, py310, py311, py312, py313, py314
14+
15+
[testenv]
16+
deps =
17+
-renv_configs/requirements-{envname}.txt
18+
install_command = {envbindir}/python -I -m pip install {opts} {packages}
19+
commands =
20+
pytest
21+
"""
22+
23+
[tool.coverage.run]
24+
source = ["flask_inputfilter"]
25+
26+
[tool.coverage.report]
27+
omit = ["__init__.py", "setup.py", "*/test/*"]
28+
29+
[tool.flake8]
30+
exclude = ["__init__.py", "venv", "*.md", ".*"]
31+
max-line-length = 79
32+
533
[tool.black]
634
line-length = 79
735

pytest.ini

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/lint

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/bash
22

3-
cd /app
4-
53
echo 'Running isort'
6-
isort .
4+
isort /app
75

86
echo 'Running autoflake'
9-
autoflake --in-place --remove-all-unused-imports --ignore-init-module-imports --recursive .
7+
autoflake --in-place --remove-all-unused-imports --ignore-init-module-imports --recursive /app
108

119
echo 'Running black'
12-
black .
10+
black /app
1311

1412
# echo 'Running docformatter'
15-
# docformatter --in-place .
13+
# docformatter --in-place /app

scripts/sphinx-build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
sphinx-build -b html /app/docs/ /app/_build

0 commit comments

Comments
 (0)