Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup tools configuration #101

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Cleanup tools configuration #101

merged 3 commits into from
Jul 12, 2023

Conversation

kmike
Copy link
Member

@kmike kmike commented Jul 12, 2023

  • move to pyproject.toml when possible
  • use pre-commit in tox, don't duplicate configuration
  • don't run mypy in pre-commit
  • update flake8, mypy and isort
  • update github actions

* move to pyproject.toml when possible
* use pre-commit in tox, don't duplicate configuration
* don't run mypy in pre-commit
* update flake8, mypy and isort
* update github actions
@kmike kmike requested a review from Gallaecio July 12, 2023 13:15
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #101 (a14b25b) into main (a3f3e15) will not change coverage.
The diff coverage is n/a.

❗ Current head a14b25b differs from pull request most recent head 8fd2138. Consider uploading reports for the commit 8fd2138 to get more accurate results

@@           Coverage Diff           @@
##             main     #101   +/-   ##
=======================================
  Coverage   98.45%   98.45%           
=======================================
  Files           9        9           
  Lines         647      647           
=======================================
  Hits          637      637           
  Misses         10       10           

pyproject.toml Outdated
multi_line_output = 3

[tool.mypy]
#check_untyped_defs = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be addressed later on, or a leftover?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be addressed later; should I remove it? The current config in scrapy-zyte-api doesn't use this flag.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's used actually :) Let me fix it

Copy link
Member Author

@kmike kmike Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was copying pre-commit/setup.cfg config options (and added no_warn_no_return = true just in case), but tox used a different config.

@kmike kmike merged commit fd91fbf into main Jul 12, 2023
14 checks passed
@kmike kmike deleted the cleanup-ci branch July 12, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants