dependabot[bot] 6725f20340 Bump eslint-plugin-testing-library from 5.10.3 to 6.0.0 in /frontend (#246)
Bumps
[eslint-plugin-testing-library](https://github.com/testing-library/eslint-plugin-testing-library)
from 5.10.3 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/testing-library/eslint-plugin-testing-library/releases">eslint-plugin-testing-library's
releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h1><a
href="https://github.com/testing-library/eslint-plugin-testing-library/compare/v5.11.1...v6.0.0">6.0.0</a>
(2023-08-12)</h1>
<p>You can follow the <a
href="https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/migration-guides/v6.md">migration
guide to v6</a>.</p>
<h3>BREAKING CHANGES</h3>
<ul>
<li><strong>await-async-query:</strong> <code>await-async-query</code>
is now called <code>await-async-queries</code></li>
<li><strong>no-await-sync-events:</strong>
<code>no-await-sync-events</code> is now enabled by default in the DOM,
Angular &amp; React configs</li>
<li><strong>no-await-sync-query:</strong>
<code>no-await-sync-query</code> is now called
<code>no-await-sync-queries</code></li>
<li><strong>no-debugging-utils:</strong> <code>no-debugging-utils</code>
now enables all debug methods in all configs by default</li>
<li><strong>no-node-access:</strong> <code>no-node-access</code> is now
enabled by default in the DOM config</li>
<li><strong>await-fire-event:</strong> <code>await-fire-event</code> is
now called <code>await-async-event</code></li>
<li><strong>no-global-regexp-flag-in-query:</strong>
<code>no-global-regexp-flag-in-query</code> is now enabled by default in
all configs</li>
<li><strong>no-manual-cleanup:</strong> <code>no-manual-cleanup</code>
is now enabled by default in the React &amp; Vue configs</li>
<li><strong>no-render-in-setup:</strong> <code>no-render-in-setup</code>
is now called <code>no-render-in-lifecycle</code></li>
<li><strong>prefer-wait-for:</strong> <code>prefer-wait-for</code> is
now removed</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>await-async-event:</strong> pluralize to await-async-events
(<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/670">#670</a>)
(<a
href="7238f76c44">7238f76</a>)</li>
<li><strong>await-async-events:</strong> improve fixer (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/675">#675</a>)
(<a
href="9d5554cb6b">9d5554c</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>await-async-event:</strong> add basic fixer (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/656">#656</a>)
(<a
href="b4b5394b18">b4b5394</a>)</li>
<li><strong>await-async-query:</strong> rename to
<code>await-async-queries</code> (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/665">#665</a>)
(<a
href="c1803df5e3">c1803df</a>)</li>
<li><strong>await-fire-event:</strong> rename to
<code>await-async-event</code> + add support for <code>user-event</code>
(<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/652">#652</a>)
(<a
href="b4ce9bb2dd">b4ce9bb</a>)</li>
<li><strong>no-await-sync-events:</strong> add to DOM, Angular &amp;
React configs by default (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/667">#667</a>)
(<a
href="afce5ea788">afce5ea</a>)</li>
<li><strong>no-await-sync-query:</strong> rename to
<code>no-await-sync-queries</code> (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/666">#666</a>)
(<a
href="7ed3da8ef5">7ed3da8</a>)</li>
<li><strong>no-debugging-utils:</strong> enable all debug methods in all
configs by default (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/663">#663</a>)
(<a
href="e394ce0962">e394ce0</a>)</li>
<li><strong>no-debugging-utils:</strong> warn instead of error in all
configs (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/662">#662</a>)
(<a
href="8063f8f6a8">8063f8f</a>)</li>
<li><strong>no-global-regexp-flag-in-query:</strong> add to all configs
by default (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/660">#660</a>)
(<a
href="c76a7bfa15">c76a7bf</a>)</li>
<li><strong>no-manual-cleanup:</strong> add to React &amp; Vue configs
by default (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/659">#659</a>)
(<a
href="8f6ebf567b">8f6ebf5</a>)</li>
<li><strong>no-node-access:</strong> add to DOM config by default (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/661">#661</a>)
(<a
href="8dfe155f56">8dfe155</a>)</li>
<li><strong>no-render-in-setup:</strong> rename to
<code>no-render-in-lifecycle</code> (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/649">#649</a>)
(<a
href="9acba430da">9acba43</a>)</li>
<li><strong>prefer-wait-for:</strong> remove rule (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/648">#648</a>)
(<a
href="20f23ad081">20f23ad</a>)</li>
</ul>
<h2>v6.0.0-alpha.15</h2>
<h1><a
href="https://github.com/testing-library/eslint-plugin-testing-library/compare/v6.0.0-alpha.14...v6.0.0-alpha.15">6.0.0-alpha.15</a>
(2023-08-05)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>await-async-util:</strong> false positives due to empty
strings (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/733">#733</a>)
(<a
href="c2b8515a0b">c2b8515</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b006e61dc2"><code>b006e61</code></a>
chore: force release</li>
<li><a
href="99cbbef76e"><code>99cbbef</code></a>
ci: use automation token for publishing to NPM</li>
<li><a
href="2a932fed6a"><code>2a932fe</code></a>
Merge branch 'main' into alpha</li>
<li><a
href="6b9c03e082"><code>6b9c03e</code></a>
chore(semantic-release): change package root (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/797">#797</a>)</li>
<li><a
href="affbd5a199"><code>affbd5a</code></a>
chore(jest): replace <code>ts-jest</code> with <code>@swc/jest</code>
(<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/798">#798</a>)</li>
<li><a
href="acc2865c9d"><code>acc2865</code></a>
style: format files</li>
<li><a
href="8516c6c93c"><code>8516c6c</code></a>
refactor: adjust changes after merge</li>
<li><a
href="640241df4c"><code>640241d</code></a>
Merge remote-tracking branch 'origin/main' into alpha</li>
<li><a
href="a900ada452"><code>a900ada</code></a>
docs: add nathanmmiller as a contributor for code, and test (<a
href="https://redirect.github.com/testing-library/eslint-plugin-testing-library/issues/795">#795</a>)</li>
<li><a
href="b75dc73158"><code>b75dc73</code></a>
fix(prefer-presence-queries): ignore <code>getBy*</code> inside
<code>within</code> for on absence ...</li>
<li>Additional commits viewable in <a
href="https://github.com/testing-library/eslint-plugin-testing-library/compare/v5.10.3...v6.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-testing-library&package-manager=npm_and_yarn&previous-version=5.10.3&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14 09:48:57 +02:00
2023-08-05 16:07:27 +02:00
2023-01-21 15:56:48 +01:00
2023-01-22 16:28:26 +01:00

Favicon of Bracket

Bracket

codecov backend frontend last commit release


Warning

This project is still under construction and considered beta software. Release v1.0.0 will be the first out-of-beta release.

Ladder tournament system meant to be easy to use. Bracket is written in async Python (with FastAPI) and Next.js as frontend using the Mantine library.

Preview

Setup

Database

First create a bracket cluster:

sudo pg_createcluster -u postgres -p 5532 13 bracket
pg_ctlcluster 13 bracket start

Subsequently, create a new bracket_dev database:

sudo -Hu postgres psql  -p 5532
CREATE USER bracket_dev WITH PASSWORD 'bracket_dev';
CREATE DATABASE bracket_dev OWNER bracket_dev;

You can do the same but replace the user and database name with:

  • bracket_ci: for running tests
  • bracket_prod: for a production database

The database URL can be specified per environment in the .env files (see config).

Config

Copy ci.env to prod.env and fill in the values:

  • PG_DSN: The URL of the PostgreSQL database
  • JWT_SECRET: Create a random secret using openssl rand -hex 32
  • CORS_ORIGINS and CORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)
  • ADMIN_EMAIL and ADMIN_PASSWORD: The credentials of the admin user, which is created when initializing the database

Running the frontend and backend

The following starts the frontend and backend for local development:

Frontend

cd frontend
yarn
npm run dev

Backend

cd backend
pipenv install -d
pipenv shell
./run.sh
Description
No description provided
Readme AGPL-3.0 37 MiB
Languages
TypeScript 51.1%
Python 47.6%
CSS 0.8%
Dockerfile 0.2%