Skip to content

Commit

Permalink
Configurations to pyproject.toml (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
oittaa authored Nov 16, 2021
1 parent 204e80a commit a50d850
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.coverage
.coverage.*
.dockerignore
.flake8
.editorconfig
.git
.github/
Expand Down
7 changes: 0 additions & 7 deletions setup.cfg → .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@ exclude =
build,
dist,
venv

[mypy]
files = *.py, ibkr_report/*.py

[coverage:run]
branch = True
source = ibkr_report
1 change: 1 addition & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/setup.py
.dockerignore
.editorconfig
.flake8
.github/
Dockerfile
LICENSE
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN pip3 install --no-cache-dir .

FROM base AS test
COPY test-data/ ./test-data/
COPY test.py requirements-dev.txt setup.cfg ./
COPY test.py requirements-dev.txt ./
RUN pip3 install --no-cache-dir -r requirements-dev.txt && \
coverage run test.py && \
coverage report -m && \
Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
this program. If not, see <https://www.gnu.org/licenses/>.
"""


from ibkr_report import create_app
from ibkr_report.definitions import DEBUG

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
[build-system]
requires = ["setuptools", "wheel"]

[tool.coverage.run]
branch = true
source = ["ibkr_report"]

[tool.mypy]
files = ["*.py", "ibkr_report/*.py"]
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage==6.1.2
coverage[toml]==6.1.2
flake8==4.0.1
gcp-storage-emulator==2021.10.31
mypy==0.910

0 comments on commit a50d850

Please sign in to comment.