Skip to content

chore: update linting & style facility#387

Merged
sobolevn merged 11 commits intowemake-services:masterfrom
joscha:joscha/use-pre-commit-and-others
May 15, 2025
Merged

chore: update linting & style facility#387
sobolevn merged 11 commits intowemake-services:masterfrom
joscha:joscha/use-pre-commit-and-others

Conversation

@joscha
Copy link
Copy Markdown
Contributor

@joscha joscha commented May 14, 2025

blocks #385

Comment thread .pre-commit-config.yaml
@@ -0,0 +1,55 @@
repos:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread pyproject.toml
Comment thread CONTRIBUTING.md
Comment thread CONTRIBUTING.md Outdated
Comment thread pyproject.toml
Comment thread pyproject.toml
wemake-python-styleguide = ">=0.18,<0.20"
flake8-pytest-style = ">=1.5,<3.0"
nitpick = "^0.35"
wemake-python-styleguide = "^1.1"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread pyproject.toml Outdated
@joscha joscha changed the title chore: update linting facility chore: update linting & style facility May 14, 2025
Comment thread .github/workflows/test.yml Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6bd75f4) to head (0c5095a).
⚠️ Report is 99 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #387   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           83        85    +2     
  Branches        18        15    -3     
=========================================
+ Hits            83        85    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joscha
Copy link
Copy Markdown
Contributor Author

joscha commented May 14, 2025

@sobolevn PTAL

Comment thread .github/workflows/test.yml Outdated
Comment thread tests/test_logics.py
# Only prefix should be changed, other parts should not:
assert dump_result['DJANGO_SECRET_KEY'] == 'test'
assert dump_result['SECRET_VALUE'] == 'value'
assert dump_result['DJANGO_SECRET_KEY'] == 'test' # noqa: S105
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

after #385 we could use syrupy for dump_result and then also get rid of the S105 directive overrides

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good idea!

Copy link
Copy Markdown
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you so much! Several minor comments :)

Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread docs/conf.py Outdated
Comment thread pyproject.toml Outdated
Comment thread setup.cfg Outdated
@sobolevn sobolevn closed this May 15, 2025
@sobolevn sobolevn reopened this May 15, 2025
@sobolevn
Copy link
Copy Markdown
Member

Testing pre-commit CI :)

@joscha joscha requested a review from sobolevn May 15, 2025 09:13
@joscha
Copy link
Copy Markdown
Contributor Author

joscha commented May 15, 2025

seems to be all good \o/

Copy link
Copy Markdown
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Great! Thanks!

Comment thread setup.cfg
ignore-path = docs/_build
max-line-length = 80
sphinx = true
[codespell]
Copy link
Copy Markdown
Member

@sobolevn sobolevn May 15, 2025

Choose a reason for hiding this comment

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

I think that we can remove it as well in later PRs.

Comment thread tests/test_logics.py
# Only prefix should be changed, other parts should not:
assert dump_result['DJANGO_SECRET_KEY'] == 'test'
assert dump_result['SECRET_VALUE'] == 'value'
assert dump_result['DJANGO_SECRET_KEY'] == 'test' # noqa: S105
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good idea!

Comment thread dump_env/dumper.py Outdated
@sobolevn sobolevn merged commit 25e6eb4 into wemake-services:master May 15, 2025
8 checks passed
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